Template Node.js Express API
the following applications are required to run in production
:
# clone full-stack template
git clone [email protected]:mi-sec/template-api.git
cd template-api/
npm i
npm start
npm i
npm test
pm2 start ecosystem.config.js --env production
api will be accessible at http://localhost/api/
by default
API testing:
For testing API things, import the Postman collection in the api
folder.
Environment should be set for:
- PROTOCOL:
http
- HOSTNAME:
localhost
- PORT:
80
- PATH:
/api
v1.0.0
- initial release