Application to check availability for sports slots at Nantes University and book them
Created because slots are quickly taken for some sports, it also happens that they forget to book one.
A bot to automatically book and check is ESSENTIAL.
- NodeJS
- TypeScript
- Puppeteer for all HTTP requests, such as auth with CAS
- LowDB (v1.0.0) for a local DB, storing: reservations, slots, sports
- Discover CI/CD with Github Actions
- Try Puppeteer
- Try Lodash
- Practice good practices (tests, linter, Express structures...)
- Get my sport slots !
Get all slots available
- Param number id : Slot ID Get a specific slot
- Param number id : Slot ID Book a slot
Get all reservations
Get all reservations under ICS format
- Body number slotId : Slot ID
- Body number recurrent : Is the booking recurrent (each week) ? Book a slot
Force to fetch slots
- Connect to university's CAS (= Central Authentication Service) using env variable
- Fetch all slots for some sports
- Check availability for these slots
- Book slots
- Specify interesting slots
- Export booked slots to ICS
- Add a few tests
- GitHub CI/CD
- Use CRON to:
- regularly check availbility
- book recurrent and not
