For full instructions on what we'd like you to do please visit our official developer test page
- API
- Endpoints
- Fetch a workout
- Basic info
- Workout content: warmup w/ circuits, main workout w/ circuits, exercises
- Swap an exercise of a workout
- Authentication
- Fetch a workout
- E2E test
- Documentation with sample request/response
- Unit test
- Endpoints
- Misc
- Assets serving
- API
- Endpoints
- Fetch a workout
- Workout content: warmup w/ circuits, main workout w/ circuits, exercises
- Swap an exercise of a workout
- Authentication
- Fetch a workout
- Unit test
- Endpoints
- Feature
- Template-rize workout for individual users to clone
- Exercise swapping
- DB
- Leverage STI for warmup and workout group records
- Normalization
- Inspect queries via query plans and optimize when seen fit
- Misc
- Assets serving
Use Postman's import feature to import /docs/api/postman_collection.json
for API documentation.
$ npm install
$ cp .env.example .env
# then update DATABASE_URL inside .env to an actual PostgreSQL endpoint
$ npm run db:migrate:dev
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# access graphQL playground via http://localhost:3000/graphql
$ cp .env.test.example .env.test.local
# then update DATABASE_URL inside .env.test.local to an actual PostgreSQL endpoint
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov