Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IpIvanov/angular2-nodejs-mongodb

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors