Angular 5+ server side rendering using NestJS :star: :fire: :boom:
|
npm install
in development, every controller ( route ) from NestJS must be mapped in proxy.conf.json
npm start
Don’t forget to Lint and Prettify your code from time to time:
npm run client:lint
npm run server:lint
npm run prettify
npm run build:universal
# test production
npm run serve:universal
To generate component|service|pipe|module with Angular CLI use:
Add new component in Contact Module
ng generate component contact/InfoComponent --module=contact/contact.module.ts
src/client/assets