This repository has the codebase of Tutorium's backend part. It is implemented with FastAPI and uses RESTful APIs to transfer data. It is connected to a MySQL server to store the data. It uses to SQLAlchemy library to access the MySQL database server and apply CRUD operations on entities.
- Prerequisites:
- You need poetry with version 1.4.2
- You need python with version 3.10
- Clone the repository:
git clone [email protected]:TheTutorium/backend.git
- Change the directory:
cd backend
- Create .env file with your own MySQL connection information
DATABASE=... DATABASE_USERNAME=... HOST=... PASSWORD=...
- Install dependencies:
poetry install
- Run the code:
poetry run start
- Now you can access docs of endpoints from the following link:
localhost:8000/docs