This repository contains the source code for the Formula-1 Database.
For the following project we have used postgresql as the database.
The Database is a collection of data from the Formula-1 2021 World Championship.
The database contains the following tables:
- Drivers
- Teams
- Circuits
- Manufacurers
- Driver's Standings
- Constructor's Standings
- Sponsors
- Race Control
For further details regarding ER diagram and schema please refer to the res folder
The database creation and sample values for the tables have been provided in the src\database folder
For the following project we have used uvicorn as the server and Flask as the web framework.
We have used psycopg2 as the database connector and fastapi as the API framework.
The source code for the website is provided in the src folder.
Use the following command to start the server on your local machine:
. uvicorn app:app --reload
The performance analysis of the queries in the projects is provided in the report folder.
Please raise a Github issue if you have any questions or suggestions.