Skip to content

claranet-it/it-portfolio-manager-backend

Repository files navigation

Fastify Serverless Spike SSO

Stack:

  • NodeJs
  • Fastify
  • Serverless Framework
  • Tap
  • Eslint
  • Prettier
  • Husky

Commands

Install DynamoDB local

npm run dynamodb:install

Start serverless offline

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

Testing

Launch tests

npm run test

Launch tests with coverage

npm run test:coverage

Launch tests with filter

npm run test:filter --filter=<filter>

Linting and Formatting

Check linting

npm run lint

Fix linting

npm run lint:fix

Format code

npm run format

Pre-commit hook

npm run prepare

then copy the content of pre-commit.dist into .husky/pre-commit

Use Cases

Health Check

curl --location 'https://<app-url>/api/health/'

should return

{
  "status": "ok"
}

Swagger

You can find the swagger documentation at the following url:

https://<app-url>/api/documentation

About

Claranet Italy - Portfolio Manager Backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published