1

I built a sample web application using the following -

  • Angular 2
  • TypeScript
  • ASP.Net WebAPI 2
  • Mongo DB
  • Karma/Jasmine
  • Node.js (only as a server, just to the extent as specified in Angular2 Quick Start)

Considering the above tech stack do we have any need of using Node.js or Express.js for building a production web application? Is any of the above tech is replaceable with Node/Express, for better performance/memory utilization/code maintainability/faster development?

3
  • If you're using an ASP.Net server, you only need Node for the development tools (transpiler, tests, etc) Commented Oct 20, 2016 at 18:29
  • If you want SQL database and C# for the back end use ASP.Net WebAPI 2, if you want Mongo DB and JS/TypeScript use Node Commented Oct 20, 2016 at 18:32
  • Related: "Why angular 2 need node.js". Commented Oct 20, 2016 at 18:34

1 Answer 1

1

You'll need Node.js for development time tooling - for instance, TypeScript compiler and running Karma/Jasmine tests.

Regarding Express.js - you can do without it. An Angular 2 application does not rely on a back end framework. It could be served as static assets from a web server. Pick any back end framework that suits your needs.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.