Exercises on DB integration
Exercise 1 - EV Charging Application
We want to create an API back end that will service the following EV recharge tracking application:

A good piece of advice is to work step by step:
- List up which entities you will need, including validations and data types
- Think about the JSON structure you will return to a front end
- Create the application locally:
- 📄
__init__.py - 📄
database.py - 📄
models.py - 📄
schemas.py - 📄
crud.py - 📄
main.py
- 📄
- Test the application locally
- Start working on the deployment, adjust the naming of services and containers:
- 📄
.gitignore - 📄
requirements.txt - 📄
Dockerfile - 📄
workflow.yml - 📄
docker-compose.yml
- 📄
- Test the application on Okteto
If you still feel like it you can even create a simple black and white, no-CSS, front end that looks like the example using AlpineJS and some CORS adjustments.
