Skip to content

claranet-it/dynamodb-back-to-basics

Repository files navigation

DynamoDB Back-to-Basics

Pre-requisites

  • Python 3.12.x
  • Poetry 1.8.x

Tools and Frameworks

  • fastapi
  • uvicorn
  • pytest
  • ruff

Use Cases

  • 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​

Commands

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

Debug (vscode)

  • 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"
            ]
        }
    ]
}

Releases

No releases published

Packages

No packages published