Angular + Nestjs - Full stack application development

Balram Chavan
Jan 20, 2019 · 1 min read

MEAN stack development is one of the favourite full stack development framework for JavaScript lover. While writing frontend application with Angular and Typescript, I used to feel bit left out with plain JavaScript code for Nodejs which I overcame by using TypeScript for Nodejs as well. Life is good again.

But how about if you could write Nodejs + Express server code in Angular terminologies like Module, Component, Service, Pipe etc? Does it sounds interesting to you? Well then you will find Nestjs very interesting.

Nestjs is a web framework built upon Nodejs and Expressjs but in Angular way.

Here is the main.ts for bootstrapping server code. Note, I have enabled CORS settings by calling app.enableCors() function.

Here is the default controller with GET REST endpoint. It calls local service to fetch message.

Here is the AppService which should talk with underlying database like MongoDB/MySql/Mock service.

Got confused if you are looking at Angular code or Nodejs, well that’s the beauty of Nestjs.

Here is the GitHub repository containing both Angular and Nestjs full stack seed project.


Balram Chavan

Written by

Full Stack Developer, GitHub Developer Program Member, Angular enthusiast!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade