npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-dotnetcore-angular2-express-mongodb

v1.0.3

Published

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

Downloads

9

Readme

Yeoman Generator

DotNetCore + Angular2 + Express Backend (REST API with MongoDB)

full end-to-end debuggability in Visual Studio 2015 (Update 3)

  • Frontend: Asp.Net Core + Angular 2 (final release) + TypeScript
  • Backend: NodeJs/Express Rest API + MongoDB + TypeScript

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)

What you get when you run this generator:

  • A Visual Studio 2015 Solution containing three projects:
    • RestApi (NodeJs)
    • Shared (NodeJs)
    • Web (Asp.Net Core)

Prerequisites:

How to generate your project:

  • 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

What is this good for?

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 :)