Skip to content

johnal95/workouts-api

Repository files navigation

Workouts API

Build Known Vulnerabilities GitHub Issues Open code style: prettier

Running API locally

  1. Create a .env file following the template in .env.example. Replacing any of the example values where appropriate. e.g.:
AWS_ACCESS_KEY_ID = AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_REGION = us-east-1
  1. Run docker compose, starting up a local DynamoDB image with an in-memory database. (This step requires a local docker installation)
docker compose up
  1. Install dependencies.
npm install
  1. Run server in development mode.
npm run dev

Running tests locally

  1. Complete the first 3 steps in the section above.

  2. Run either of the following test scripts:

npm run test
npm run test:watch
npm run test:coverage

API documentation

The API specification can be consulted by accessing the URL below while running the project locally.

https://localhost:$PORT/api/docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published