API endpoints created in FastAPI to register teams and players, and matches. The data is stored in PostgreSQL DB. The ORM used is SQLAlchemy.
Create a project Folder and clone this Repository
mkdir cricbuzz
cd cricbuzz
git clone <repository_url>
Install the dependencies
pip install -r requirements.txt
Configure the dbsettings schema in app/schemas.py according to the PGAdmin details of your Postgres DB.
Run init__db.py to create Tables in DB:
python init_db.py
Run the project using uvicorn
uvicorn main:app --reload
Run add_data.py to add some basic data:
python add_data.py