A simple delivery server with FastAPI.
pip install -r /path/to/requirements.txt
uvicorn main:app
Also need a file constants.py
in the main project path to set the values of:
DB_URL =
=> The path to the DB.
HOLIDAY_API_KEY =
=> https://holidayapi.com/docs
API key.
GEO_API_KEY =
=> https://www.geoapify.com/geocoding-api
API key.
(Could be replaced with env vars)
Will start in a sperated thread - the setup will load courier_API.json
when starting the server, that would add timeslots and adresses to the DB.
After that, a scheduler that will run every week to load the next weeks timeslots from courier_API.json
.
A REST API for deliveries - can get addresses, timeslots, book a delivery, update a delivery and more.