Nesula
1.0.0
1.0.0
  • Introduction
  • Overview
    • First steps
    • Architecture
    • Authentication
    • Authorization
    • Routing
    • Meta
    • Mail
    • Security
      • Content Security Policy
    • Configuration
    • Service Worker
    • Logger
  • Development
    • Angular
    • NestJS
  • Nesula Devops
    • Nesula Setup
      • Files: Git
      • Database: Postgres
      • Server: Nginx
      • .Env & environment.ts
      • SSL
      • Build & Serve
    • Deployment
      • Deploy: Development
      • Deploy: Staging
      • Deploy: Production
    • Installation [ Old ]
  • Developer Setup
    • Visual Studio Code
      • Extensions
      • Run & Debug: Launch.json
      • Remote SSH
    • Chrome
    • Postman
  • Server Setup
    • Ubuntu Server Setup
      • Settings
      • Security
      • Users
    • App Server Setup
    • Node.js Hello World
    • Command Line
Powered by GitBook
On this page
  • Angular
  • NestJS
  • Nesula

Was this helpful?

  1. Nesula Devops
  2. Nesula Setup

Build & Serve

Compile Angular & NestJS and serve them via a URL

Angular

Build & server Angular in Development mode

Navigate to Angular folder

$ 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

Navigate to NestSJ folder

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

Install Paclages for NestJS

$ npm install

Build & Serve NestJS in Development Mode

$ npm run start:dev

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

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.

PreviousSSLNextDeployment

Last updated 3 years ago

Was this helpful?