- APIs for initiating marathons, racers, checkpoints, final results.
- Tables for marathon, racers, stations, checkpoints of each stations and racers, a summary.
- Package this service with Docker for deployment.
This repository focus on backend service (Django and MySQL), if you want to know more about the whole system or frontend (local PC and RFID).
- For more details:
reference : HackMD
Step 1. Clone or Download the Project git clone [email protected]:chiashengchen/marathon-system.git
Step 2. Go to the directory cd <your_project_directory> (where docker related files and manage.py are)
Step 3. Run docker-compose up: docker-compose up --build
Step 4. Apply Migrations docker-compose exec web python manage.py migrate
Step 5. Stop the Services docker-compose down
- If you need to view or modify the database directly, they can connect to the MySQL container from the terminal using the following command: docker-compose exec db mysql -u root -p