- Python 3.12.x
- Poetry 1.8.x
- fastapi
- uvicorn
- pytest
- ruff
- Get details of an E-Bike and related Bookings
- Get Bookings for a specific User
- Retrieve all available E-Bikes
- Get details of a specific Booking
- Create a new Booking
- Update an existing Booking
- Delete an existing Booking
Install
make make install
Start local server
make start-local
Lint
make lint
Lint and fix
make lint-fix
Format
make format
Launch tests
make test
Launch test with coverage
make coverage
- Install debugpy extension
- Add the following configuration to your launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: FastAPI",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
"app.main:app",
"--reload",
"--port",
"3000"
]
}
]
}