Requirement Development:
- Node 16.13
- Npm 8.1
- MongoDB 5.0.3
- Clone this repository
git clone https://github.com/erwienwijaya/node-express-api.git - Copy or duplicate file
.env.exampleand then rename.env - Config inside file
.env(optional) - Config file
.envset APP_DEBUG = true (for Development and Test) or APP_DEBUG = false (for Production) - Install requirements dependencies:
npm install - Run node server:
npm run dev - Access the project at:
http://localhost:3000
- Run test:
npm test
- Access the API documentation at:
http://localhost:3000/api/docs/
- Access url:
https://my-node-express-api.herokuapp.com/api/docs