A complete GymPass API built with Fastify, TypeScript, Prisma and PostgreSQL, using SOLID principles. The API is designed to handle authentication (JWT), authorization permission system (RBAC), unit tests and e2e tests with a CI workflow created on GitHub Actions for automatically test the source code in a push or pull request event on main branch.
Last but not least, in order to simplify the application execution process you can use the container environemnt created for this project using Docker Compose.
# Clone repo
$ git clone https://github.com/d0ugui/gympass-api-solid
# run and create containers
$ cd gympass-api-solid && docker compose up -d
# create .env
$ look at the example in .env.example file
# install deps
$ yarn or npm install
# apply prisma migrations
$ npx prisma migrate deploy
# run api
$ npm run dev or yarn dev
This software is available under the following licenses: