- MVC structure
- CRUD sample
- Integrate Unit testing with jest
Install the dependencies and devDependencies and start the server.
$ git clone https://github.com/programming101tutorial/nodejs-crud-basic.git
$ cd nodejs-crud-basic
$ cp .env.example .env
$ npm install
$ npm startnodejs-crud-basic
├─ app
│ ├─ controllers
│ │ ├─ sum.js
│ │ └─ user.js
│ ├─ models
│ │ └─ user.js
│ ├─ routes
│ │ ├─ index.js
│ │ └─ user.js
│ └─ services
│ └─ user.js
├─ config
│ └─ database.config.js
├─ test
│ └─ sum.test.js
├─ index.js
├─ package-lock.json
├─ package.json
└─ README.md
MIT
Author: Mengty