Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.24 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.24 KB

Project Setup Instructions

Follow these steps to set up the project environment and run the application:

  1. Create a Python 3.12.4 Environment

    python3 -m venv venv
    source venv/bin/activate
  2. Install Requirements

    pip install -r requirements.txt
  3. Launch Docker Compose

    cd local-env
    docker-compose up -d
    cd ..
  4. Run Database Migrations

    alembic upgrade head
  5. Set PYTHONPATH

    export PYTHONPATH=$PWD
  6. Create Admin User The first admin user is created using a script. This initial admin user can then be used to create other admin users.

    python create_admin_user.py
  7. Run FastAPI Development Server

    uvicorn app.main:app --reload
  8. Check Endpoints Open your browser and go to http://127.0.0.1:8000/docs to see all the available endpoints.

  9. Authorize on Secured Endpoints To authorize yourself on secured endpoints, press the lock button and enter the username and password generated by the script above. For more details, refer to the FastAPI documentation here.