This is a Fomula One API build in Rust and currently under development. The goal is to provide a simple and easy to use API to access the ergast database and in the end, provide a new maintained database after the 2024 season.
To build and run the API, you need to have the following tools installed on your system:
To run the API locally, follow these steps:
- Clone the repository:
git clone https://github.com/race-tech/f1-api.git
- Run the project using the docker compose file:
docker-compose -f docker-compose.dev.yml up -d --build
You can configure the API using a yaml file. This file should be named config.yaml
and should be placed in the root of the project. The following configuration options are available:
port: 8000
database:
name: f1db
hostname: database
port: 3306
user: user
password: password
middlewares:
- graphiql:
enabled: true
route: /
You can also change the file name and location by setting the F1_API_CONFIG
environment variable.
This project is licensed under the GPL-3.0 License.
This project is unofficial and is not associated in any way with the Formula 1 companies. F1, FORMULA ONE, FORMULA 1, FIA FORMULA ONE WORLD CHAMPIONSHIP, GRAND PRIX and related marks are trade marks of Formula One Licensing B.V