This project was generated with Angular CLI version 1.2.3.
- Clone the project to your computer.
- Run
npm install
.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
- Run
ng build
to build the project. The NodeJS server will run the folderdist
after build. Care to check every changing before build. - Run
node server.js
. Navigate tohttp://localhost:3000/
. Every change on fileserver.js
.
Go to db.js
file and config for MongoDB
var url = "<Mongo URL DB HERE>";
...
var database = db.db('<db name>');
I'm using mLab free MongoDB, for example
- MongoDB URL : mongodb://:@ds036617.mlab.com:36617/testingmongo
- DB name : testingmongo