Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 823 Bytes

README.md

File metadata and controls

53 lines (32 loc) · 823 Bytes

CricBuzz

API endpoints created in FastAPI to register teams and players, and matches. The data is stored in PostgreSQL DB. The ORM used is SQLAlchemy.

DataBase Design

alt text

API Endpoints

alt text alt text

Run the Project

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