Angular + Nestjs - Full stack application development

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.

Cheers!

Cloud Solution Architect | Author | Full Stack Developer | https://www.linkedin.com/in/balram-chavan | https://www.hiretheauthor.com/balramchavan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store