- NodeJS version >= 14
- PostgreSQL
- Clone repository
- Copy .env.example to .env and adjust the values inside.
- Install dependencies
npm i
- Run migration
npm run migrate up npm run migrate:test up # For automation testing
- Start development server
npm run start:dev
start
=> run production serverpm2 start npm --name "auth-api" -- run "start"
format
=> format code with standardjs styletest
=> run comprehensive tests with coverage reporttest:watch
=> run all tests when a file has changedtest:watch:changed
=> run tests related to changed filestest:newman
=> run postman tests on CLI
- Endpoint: https://spicy-fireant-6.a276.dcdg.xyz/
- Repository: https://github.com/kamalmahmudi/forum-api
- Github workflows: https://github.com/kamalmahmudi/forum-api/actions
- ❌ Failed CI: https://github.com/kamalmahmudi/forum-api/actions/runs/1666715183
- ✔️ Success CI: https://github.com/kamalmahmudi/forum-api/actions/runs/1667189776
- ❌ Failed CD: https://github.com/kamalmahmudi/forum-api/actions/runs/1666037340/attempts/1 (this action was executed for second time, so it's a success now)
- ✔️ Success CD: https://github.com/kamalmahmudi/forum-api/actions/runs/1666062409