-
Clone the repository:
-
Navigate to the project directory:
cd JamAndFlow -
Setup virtual environment:
python -m venv venv
-
Activate the virtual environment:
- A. for windows:
./venv/Scripts/activate - B. for macOS/Linux:
source venv/bin/activate
- A. for windows:
-
Run FastAPI server through uvicorn:
uvicorn app.main:app --host localhost --port 80 or uvicorn app.main:app --reload
- Create a
.envfile in the root directory of the project and add the following environment variables:POSTGRES_USER= POSTGRES_PASSWORD= POSTGRES_DB=JamAndFlow POSTGRES_HOST=db POSTGRES_PORT=5432 GENERATOR_SERVICE_URL=http://generator-service:8000
- Install Docker if you haven't already.
- Build the Docker images:
docker compose build --no-cache- Start the Docker containers:
docker compose up
- access the application
http://localhost:8000 - stop the containers:
docker compose down
- go to root directory
- run the following command:
alembic -c app/alembic.ini revision --autogenerate -m "testing"