Open cmd or bash & run these commands,
git clone https://github.com/imdadul/mean-demo-BE.git
cd mean-demo-BE
npm install
npm start
The Backend server will start in localhost:3001
npm test
Currently this server is using a remote mongodb database from mongolab.
If you want to change the database, open const/config.json
and change connectionString
├──bin
│ └── www
├──const // All constants such as keys, connstrings, remote api endpoints(if) should be here.
│ └── config.json
│ └── keys.json
├──database
│ └── movie.js
│ └── user.js
├──public
│ └── stylesheets
│ └── style.css
├──push-notification // Push notification handler
│ └── push-notification.js
│ └── sockets.js
├──routes //Route endpoints
│ └── index.js
│ └── movies.js
│ └── users.js
├──spec // Test cases
│ └── userSpec.js
├──util
│ └── const.js // This file holds all the references of config json objects.
│ └── EVENTS.js // All push notification event names.
│ └── jwt.js //JWT token handler
├──views
│ └── error.hbs
│ └── index.hbs
│ └── layout.hbs
├──app.js
├──package.json
├──README.md