IpIvanov / angular2-nodejs-mongodb

Angular2 app using nodejs as backend and mongodb as database storage.

Home Page:https://limitless-waters-93310.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Info

Angular 2 app with nodejs as backend server. Integrated easy deploy to heroku and connected to mLab - mongodb database storage.

Angular2 Express MongoDB ( Advanced )

  • Angular 2 ( 2.x )
  • ExpressJS ( 4.x - with compression )
  • Mongodb
  • Webpack ( angular-cli )

Concepts

  • Redux ( NgRx/Store - with server calls)
  • Smart & dumb components
  • AOT: Ahead-of-Time compilation
  • Advanced routing ( lazy loading, router outlets...)

Install / Development

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

Build / Production

npm run build

## Deploy dist folder to app server

Structure of dist folder:

/dist/server <-- expressjs
/dist/client <-- angular2

About

Angular2 app using nodejs as backend and mongodb as database storage.

https://limitless-waters-93310.herokuapp.com/

License:Other


Languages

Language:TypeScript 77.1%Language:HTML 11.2%Language:CSS 7.6%Language:JavaScript 4.2%