Skip to content

frwl404/fastapi-sandbox

Repository files navigation

FastAPI Book Management API

A minimalistic FastAPI application for managing books with SQLite database, featuring Pydantic validation and comprehensive REST endpoints.

Features

  • Health check endpoint
  • Get book by ID
  • List books with filtering (by title, minimum pages)
  • Create new books with validation
  • Update book price and rating
  • Full Pydantic validation for data integrity

Prerequisites

  • Docker and Docker Compose

Quick Start

Sandbox Server

Start the production server:

docker compose up app --build

The API will be available at http://localhost:8080

Run acceptance tests:

# Make sure the server is running first
python3 acceptance_test.py

Running Tests

Run unit tests:

# Run all tests
docker compose run --rm --build app-dev uv run pytest

About

later

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors