Simple API for food delivery company:
- Delivery registration
- Add employee and client to database
- Register order -> automatically calculate the travel distance
- Track all orders / filter by dates - prices etc.
🐍 FAST_API 🐍, SQLAlchemy
- FrontEnd -> Semantic UI
- Unit tests -> Pytest
- Testing API -> Postman / Insomnia
- DB -> SQLite
to run app:
clone repo, create virtual env and activate
$ pip install -r requirements.txt
$ python run.py
App use external API (https://developer.mapquest.com/) to calculate distance between Client address and customer: Set your API_KEY for proper data loading:
$ export API_KEY=<your API KEY>
After this load data:
$ python load_db.py
Some screens: