Stack:
- NodeJs
- Fastify
- Serverless Framework
- Tap
- Eslint
- Prettier
- Husky
- Java
npm run dynamodb:install
Start serverless in offline mode (use only for development and testing purposes)
npm run offline
npm run dynamodb:start:dev
after that you can use the following command to stop dynamodb
npm run dynamodb:kill
You can open DynamoDB Admin UI using the command:
npm run dynamodb:admin
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
local: http://localhost:3000/dev/documentation/static/index.html
- Create
.env
file in project root folder - Add to
.env
fileGOOLE_CLIENT_ID=XXX GOOLE_CLIENT_SECRET=XXX
- Replace XXX with your google client id and secret