This project provides the back-end API for a gym membership platform, similar to Gympass. The application allows users to check in to their affiliated gyms and track their workout sessions.
- It must be possible to register;
- It must be possible to authenticate;
- It must be possible to obtain the profile of a logged-in user;
- It must be possible to obtain the number of check-ins performed by the logged-in user;
- It must be possible for the user to obtain their check-in history;
- It must be possible for the user to search for nearby gyms;
- It must be possible for the user to search for gyms by name;
- It must be possible for the user to check in to a gym;
- It must be possible to validate a user's check-in;
- It must be possible to register a gym.
- The user must not be able to register with a duplicate email;
- The user must not be able to check in more than once on the same day;
- The user must not be able to check in if they are not close (100 meters) to the gym;
- Check-in can only be validated up to 20 minutes after being created;
- Check-in can only be validated by administrators;
- The gym can only be registered by administrators;
- The user's password must be encrypted;
- The application data must be persisted in a PostgreSQL database;
- All data lists must be paginated with 20 items per page;
- The user must be identified by a JWT (JSON Web Token);
- Node.js
- Typescript
- Fastify
- Prisma ORM
- PostgreSQL
- Dayjs
- Zod
Contributions are welcome! Please follow these steps to contribute:
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
MIT by Wolney Oliveira