Skip to content

Boilerplate code with Angular Universal (server side rendering) & Node server written in TypeScript with express API routes to get started with your project in Angular 8.2 + Node.ts

License

meetdave3/angular-node-typescript-boiler

Repository files navigation

Angular Universal (Latest) + Node.js (TypeScript) - Boiler

Build Status

This project is a starter project with Node at the backend (fully written in TypeScript) and Angular on the client side.

This repo shall allow you to instantly get started with a full stack project in place. Just connect it with your favorite database and you're good to go.

Repo Features

  • Angular 8.2
  • Bootstrap
  • Lazy Loaded Routes
  • Angular Material
  • PWA Ready
  • Server Side TypeScript
  • Node.js Express API written in TypeScript
  • Production Ready Build
  • Established Dev Environment
  • Server Side Rendering (Angular Universal)

Setup

After cloning, run npm install

Development server

Run npm run start to spin front end code,

Run npm run post-dev to start the Node server in development mode

Navigate to http://localhost:4200/.

You can now seamlessly watch your changes reflect in realtime everytime you hit save (Client + Server code).

Production Build

Run npm run build:prerender

Then npm run serve:ssr to start the server

This spins up a SSRed Node server on http://localhost:3015

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Contribution

Pull Requests are welcome.