Stack:
- NodeJs
- Fastify
- Serverless Framework
- Tap
- Eslint
- Prettier
- Husky
- Java
npm run dynamodb:installStart serverless in offline mode (use only for development and testing purposes)
npm run offline
npm run dynamodb:start:devafter that you can use the following command to stop dynamodb
npm run dynamodb:killYou can open DynamoDB Admin UI using the command:
npm run dynamodb:adminLaunch tests
npm run testLaunch tests with coverage
npm run test:coverageLaunch specific tests
npm run test --path="test/routes/business-card/getMine.test.ts" # run single test
npm run test --path="test/routes/business-card" # run all tests of the folderRun tests with server running locally
npm run test:execute # run all tests
npm run test:execute --path="test/routes/business-card/getMine.test.ts" # run single test
npm run test:execute --path="test/routes/business-card" # run all tests of the folderCheck linting
npm run lintFix linting
npm run lint:fixFormat code
npm run formatnpm run precommit:initthen 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/documentationlocal: http://localhost:3000/dev/documentation/static/index.html- Create
.envfile in project root folder - Add to
.envfileGOOLE_CLIENT_ID=XXX GOOLE_CLIENT_SECRET=XXX - Replace XXX with your google client id and secret