- db
dbconfig.js database configration file
dbutils.js database connection tool
- dao
userdao.js JAVA style database access object file
- services
articleService.js JAVA style service file
- models
user.js user model class
- other files are created automaticly by express.
-
git clone https://github.com/FebFirst/nodejs-express-mongodb-sample.git
-
modify dbconfig.js to match your own db settings.
-
cd this directory then type command below:
npm install
npm start