Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Innovic-io/angular-nestjs-rendering
Angular 5+ server side rendering using NestJS :star: :fire: :boom:
https://github.com/Innovic-io/angular-nestjs-rendering
angular angular-universal api nestjs
Last synced: about 1 month ago
JSON representation
Angular 5+ server side rendering using NestJS :star: :fire: :boom:
- Host: GitHub
- URL: https://github.com/Innovic-io/angular-nestjs-rendering
- Owner: Innovic-io
- License: mit
- Created: 2018-01-02T23:21:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T09:23:12.000Z (over 6 years ago)
- Last Synced: 2024-08-02T17:33:11.331Z (4 months ago)
- Topics: angular, angular-universal, api, nestjs
- Language: TypeScript
- Homepage:
- Size: 349 KB
- Stars: 104
- Watchers: 13
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nestjs - Angular Nestjs Rendering - 使用 NestJS 进行 Angular 5+ 服务端渲染 (资源)
- awesome-nestjs - Angular NestJS Rendering - Angular 5+ server side rendering using NestJS. (Resources)
README
# Angular NestJS Universal ( Server Rendering )
- src/client <-- Angular 5+
- src/server <-- NestJS
- src/shared <-- Shared between apps
- INNOVIC doo
- Software consulting company for building full stack solutions.
- Proficient in: NodeJS, TypeScript, Angular, MongoDB... <any>.js library :)
- You have project for us? [email protected]
### Included
- REST API
- WebSockets
### Install
```bash
npm install
```
### Development
* Development port is on: 4200 ( inherited from angular-cli )
**in development, every controller ( route ) from NestJS must be mapped in proxy.conf.json**
```bash
npm start
```
Don't forget to Lint and Prettify your code from time to time:
```bash
npm run client:lint
npm run server:lint
npm run prettify
```
### Production
* Production port is specified in .env ( default to 5400 )
```bash
npm run build:universal
```
```bash
# test production
npm run serve:universal
```
### Angular CLI generator
To generate component|service|pipe|module with Angular CLI use:
Add new component in Contact Module
```bash
ng generate component contact/InfoComponent --module=contact/contact.module.ts
```
### Static asset directory
```bash
src/client/assets
```