Stack:
- NodeJs
- Fastify
- Serverless Framework
- Tap
- Eslint
- Prettier
- Husky
Start local server (use only for development and testing purposes)
npm run dev
Start serverless in offline mode (use only for development and testing purposes)
npm run offline
Launch tests
npm run test
Launch tests with coverage
npm run test:coverage
Launch tests with filter
npm run test:filter --filter=<filter>
Check linting
npm run lint
Fix linting
npm run lint:fix
Format code
npm run format
npm run precommit:init
then copy the content of pre-commit-dist
into .husky/pre-commit
curl --location 'https://<app-url>/api/health/'
should return
{
"status": "ok"
}
You can find the swagger documentation at the following url:
https://<app-url>/api/documentation