
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
generator-dotnetcore-angular2-express-mongodb
Advanced tools
DotNet Core + Angular 2 (final release) for frontend, Express and MongoDB for Rest Api (backend), ready for debugging (client side & server side) in Visual Studio 2015 Update 3
full end-to-end debuggability in Visual Studio 2015 (Update 3)
If you want to have Visual Studio 2015 full end-to-end debuggability but also NodeJS Express for you backend REST Api (instead of Asp.Net MVC)
Install above prerequisites
Run the following commands:
$ npm install -g generator-dotnetcore-angular2-express-mongodb
$ mkdir your-project-name
$ cd your-project-name
$ yo dotnetcore-angular2-express-mongodb
Altough Visual Studio Code or Sublime Text are really powerful - when it comes to debugging TypeScript (server or client side) nothing beats Visual Studio (at least in my opinion). The easiest way to get a debuggable Angular 2 solution is to create a Asp.Net project (MVC, Web Forms, Asp.Net Core - does not matter which one). Just hit F5 and the debugger will attach itself to your browser.
This works great - if you also want to have your REST api in c# (probably going for Entity Framework for your data layer).
If you want to have a NodeJS/Express application as your backend (utilizing MongoDB as data store) it gets complicated. The easy way would be to just host your frontend (Angular 2 app) with NodeJS Express too. Unfortunately the end-to-end debugging experience is not yet there with NTVS (Node Tools for Visual studio).
Best way to achive my requirements was to create separate projects for the frontend (hosted by Asp.Net Core) and backend REST Api (hosted by NodeJs Express).
Additional benefit of this approach is the possibility to share code between frontend and backend. We can now share DTOs between Angular 2 code and backend persistence code :)
FAQs
DotNet Core + Angular 2 (final release) for frontend, Express and MongoDB for Rest Api (backend), ready for debugging (client side & server side) in Visual Studio 2015 Update 3
The npm package generator-dotnetcore-angular2-express-mongodb receives a total of 7 weekly downloads. As such, generator-dotnetcore-angular2-express-mongodb popularity was classified as not popular.
We found that generator-dotnetcore-angular2-express-mongodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.