Skip to content

arunstar/bookinventory

Repository files navigation

BookInventory

REST APIs for Book Inventory using FastAPI

Swagger

Swagger

Backend Requirements

Backend local development

  • Start the stack with Docker Compose:
docker-compose up -d
  • Now you can open your browser and interact with these URLs:

Frontend, built with Docker, with routes handled based on the path: http://localhost

Backend, JSON based web API based on OpenAPI: http://localhost/api/

Automatic interactive documentation with Swagger UI (from the OpenAPI backend): http://localhost/docs

Alternative automatic documentation with ReDoc (from the OpenAPI backend): http://localhost/redoc

PGAdmin, PostgreSQL web administration: http://localhost:5050

Traefik UI, to see how the routes are being handled by the proxy: http://localhost:8090

Note: The first time you start your stack, it might take a minute for it to be ready. While the backend waits for the database to be ready and configures everything. You can check the logs to monitor it.

To check the logs, run:

docker-compose logs

To check the logs of a specific service, add the name of the service, e.g.:

docker-compose logs backend

Note : This project is created with the help of tiangolo/full-stack-fastapi-postgresql and modified accordingly, due to limited time. It still contains bugs, and not 100% ready.

About

REST APIs for Book Inventory using FastAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published