Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 977 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 977 Bytes

Backend - FastAPI with PostgreSQL

This directory contains the backend of the application built with FastAPI and a PostgreSQL database.

Prerequisites

  • Python 3.8 or higher
  • Poetry (for dependency management)
  • PostgreSQL (ensure the database server is running)

Installing Poetry

To install Poetry, follow these steps:

curl -sSL https://install.python-poetry.org | python3 -

Add Poetry to your PATH (if not automatically added):

Setup Instructions

  1. Navigate to the backend directory:

    cd backend
  2. Install dependencies using Poetry:

    poetry install
  3. Set up the database with the necessary tables:

    poetry run bash ./prestart.sh
  4. Run the backend server:

    poetry run uvicorn app.main:app --reload
  5. Update configuration: Ensure you update the necessary configurations in the .env file, particularly the database configuration.