TrackingDubs Backend API
provides an in-depth view of betting history, allowing bettors to gain insights into their past bets, strategies, and profitability. Built with Nest.js, Prisma, and PostgreSQL, it offers features such as secure authentication and CRUD operations for managing user and bet data.
- User Authentication: JWT-based user registration and login.
- Bet Management: CRUD operations for tracking bet data.
- Performance Insights: Analyze trends and betting strategies.
- API Documentation: Easily explore the API using Swagger.
- Nest.js: A Node.js framework for scalable applications.
- Prisma: ORM for database interactions.
- Postgres: Robust relational database.
- JWT: Secure user authentication and authorization.
npm install
See the .env.template
file for more information
Docker desktop must be open
docker compose up -d
npx prisma migrate dev --name "Initial Schema"
Two users will be created. The first one as admin [email protected]
and the second one as user [email protected]
, same password for both 123456
.
npm run seed
npm run dev
The API documentation is generated using Swagger, providing a user-friendly interface to explore and test API endpoints. It covers all the available routes, parameters, and response formats, making integration straightforward. Access the Swagger documentation locally at http://localhost:3000/api.
Comprehensive Postman documentation is available for the TrackingDubs API. This collection includes all endpoints with sample requests and responses for easy testing and validation. Ensure you have Postman installed to use this collection effectively.
Contributions are welcome! Fork the repository, suggest improvements, and submit pull requests to enhance the functionality or add new features.
This project is licensed under the MIT License. See the LICENSE
file for more details.
For issues or questions, please open an issue on GitHub.