Skip to content

mi-sec/template-api

Repository files navigation

template-api

Template Node.js Express API


the following applications are required to run in production:

  • Node.js (recommended: v12.18.3)
  • PM2 (recommended: v4.4.0)
# 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