Angular 2 app with nodejs as backend server. Integrated easy deploy to heroku and connected to mLab - mongodb database storage.
- Angular 2 ( 2.x )
- ExpressJS ( 4.x - with compression )
- Mongodb
- Webpack ( angular-cli )
- Redux ( NgRx/Store - with server calls)
- Smart & dumb components
- AOT: Ahead-of-Time compilation
- Advanced routing ( lazy loading, router outlets...)
git clone https://github.com/IpIvanov/angular2-nodejs-mongodb
cd angular2-nodejs-mongodb
# Install dependencies
npm install
# start server and client
npm run start
# start client and serve app at url: http://localhost:4200
ng serve
# Client url: http://localhost:4200
# Application ( epxress ) API: http://localhost:4300
npm run build
## Deploy dist folder to app server
Structure of dist folder:
/dist/server <-- expressjs
/dist/client <-- angular2