๐งช Backend
Framework
- Nest.js with modular architecture
Features
- RESTful API serving frontend only
- Integration with Ergast API
- Redis caching
- MongoDB with indexes and constraints
Architecture
- Layered: Controller โ Service โ Repository
- On app run data from ergast service is syncronized
Endpoints
Full information about endpoint can be found on swagger page locally Swagger:
-
/
- Health check endpoint, just return "OK"-
/seasons
โ List all seasons with champions-
/seasons/:year
โ List races for a given year with rounds winners and global winnerTesting
- Jest for unit & integration tests
- Mocking external API calls