REST API for a CrossFit Training App
This API is a personal workout where users (who will own a gym) can register members, workout plans and maintain their own workouts within one app. In addition to that, they can also add some important training tips for each workout.
MongoDB:
- Soft deletion of documents
- Document pagination
- Document seed
App:
- Authentication
- Authorization
- Refresh token by cookie
- Download data in CSV
API_PORT
the http server port. By default is4044
JWT_SECURE_REFRESH
, hash to refresh the tokenJWT_SECURE
, hashes for the tokenMONGODB_URI_TEST
, the mongodb test database test uriMONGODB_URI
, the mongodb database uriNODE_ENV
, to indicate the execution of the api in development or production mode. By default isdeveloper
- Clone project
npm install
- Clone the
.env.template
file and rename it to.env
- Change environment variables (optional)
- Running the app
npm run start
ornpm run start
in development mode
- Clone project
- Clone the
.env.template
file and rename it to.env
- Change environment variables (optional)
- Run the following command:
docker compose -f "docker-compose.yml" up -d
curl -X 'GET' 'http://localhost:4044/api/v1/seed' -H 'accept: */*'