Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.29 KB

File metadata and controls

45 lines (33 loc) · 1.29 KB

Nodejs Classifields

This is sources of nodejs training online by Dung Vu. it uploading on youtube

Install

First, you must have mongoDB Server (localhost for dev or cloud mongodb for production). On localhost for dev tutorial at Install MongoDB for development

$ git clone https://github.com/2pay/Nodejs-classifields.git
$ cd Nodejs-classifields
$ npm install
$ npm start

Config Database

  • Edit database file: app/config/database.js

On localhost with auth of MongoDB

dbStr: 'mongodb://mongo_username:mongo_password@mongo_host:mongo_port/mongo_dataname'
  • mongo_username: your username mongodb
  • mongo_password: your password of username mongodb
  • mongo_host: your host address or ip address mongodb
  • mongo_port: your port mongodb (27017)
  • mongo_dataname: your name of databse mongo

On localhost not auth of MongoDB

dbStr: 'mongodb://mongo_host:mongo_port/mongo_dataname'
  • mongo_host: your host address or ip address mongodb
  • mongo_port: your port mongodb (27017)
  • mongo_dataname: your name of databse mongo

Config Auth

  • Edit database file: app/config/auth.js

Youtube Part