Skip to content

A simple and dynamic FastAPI application seamlessly integrated with a PostgresSQL database within a Docker image.

Notifications You must be signed in to change notification settings

freezerain/fastapi_postgre_docker_base_app

Repository files navigation

API App using FastAPI, PostgresSQL, and Docker 🚀

A simple and dynamic FastAPI application seamlessly integrated with a PostgresSQL database within a Docker image.

Description

This project template serves as a versatile starting point for various future projects, fostering easy development and scalability.

Getting Started

Major Dependencies

  • FastAPI
  • Uvicorn
  • Ormar
  • Pytest
  • More details in requirements.txt

Installing

$ docker-compose up -d --build  # Build 🏠

Maintenance

  • Run tests 🧪

    $ docker-compose exec web pytest .
  • Clean DB 🧹

    $ docker-compose down --volumes

Running

The server is accessible at http://127.0.0.1:8008/

By default, Swagger documentation is available. Alternatively, you can use ReDoc at http://127.0.0.1:8008/redoc

Certain internal errors will be displayed in the Docker console only.

Wishing you the best of luck! 🌟

Authors

🔥 Ilia Rodikov - [email protected] 🔥

About

A simple and dynamic FastAPI application seamlessly integrated with a PostgresSQL database within a Docker image.

Resources

Stars

Watchers

Forks