This is SoTA backend repository
SoTA or System of Tournamental Athleticism is the software from IOC (Skill isuue? Group) which is part of Software Process and Project Management course.
- Firstly, install the required packages using:
pip install -r requirements.txt
-
Then create a
.env
file according to sample.env given. -
Lastly, to run the app, use:
uvicorn sota.main:app
- Create
dump
folder in mongodb folder. - Copy
Sota
folder fromdump_data
in the repository to newdump
folder that you create in mongodb folder. - Run this command in terminal or docker terminal:
mongorestore dump/
"country_code": "TH",
"sport_id": [1],
"gender": "M",
"age": 21
"country_code": "TH",
"country_name": "Thailand",
"sports": [
{
"sport_id": 1,
"type_id": 1,
"gold": 0,
"silver": 0,
"bronze": 0
}
]
"sport_id": 1,
"sport_name": "test",
"sport_summary": "test",
"participating_countries": ["TH", "JP"]
"sport_id": 1,
"type_id": 1,
"type_name": "Men 100m",
"participating_countries": [
"US", "DE", "JP"
]