Build & Serve

Compile Angular & NestJS and serve them via a URL

Angular

Build & server Angular in Development mode

$ cd /var/www/dev.nesula.com/nesula/angular-app

Install Packages for Angular

$ npm install

Build & Serve Angular in Development Mode

$ npm run start:dev

NestJS

Build and serve NestSJ in development mode

$ cd /var/www/dev.nesula.com/nesula/nest-api

Install Paclages for NestJS

Build & Serve NestJS in Development Mode

Nesula

In the documentation above we have started Angular & NestJS and they are accesable via several URLs:

Framework
Server
URL

Angular

Ng serve

http://localhost:4200

NestJS

Node.js

http://localhost:3001

NestJS

Nginx --> Node.js

https://dev.nesula.com

NestJS is available by its localhost address and the domain configured inthe Nginx .conf

Angular is available via localhost for debugging and would not be used in production

circle-info

When viewing the site via the Angular localhost URL the NestJS server side pages will not be accesible as ng serve only serves Angular routes.

Last updated