-
Clone the repository
git clone <repository-url> cd prokoi
-
Install dependencies
poetry install
-
Set up environment variables Create a
.envfile in the root directory with your cloud service credentials:# Database Configuration (PostgreSQL Cloud) DB_HOST=your-postgresql-cloud-host DB_PORT=5432 DB_USER=your-database-user DB_PASSWORD=your-database-password DB_NAME=your-database-name # Security Configuration SECRET_KEY=your_secret_key_here ALGORITHM=HS256 ACCESS_TOKEN_EXPIRE_MINUTES=30 # Redis Configuration (Redis Cloud) REDIS_HOST=your-redis-cloud-host REDIS_PORT=your-redis-port REDIS_PASSWORD=your-redis-password
-
Set up the database
- Run the SQL migration files in the
src/models/directory in order:V1_01_core_organizations.sqlV1_02_teams_memberships.sqlV1_03_workspaces_projects.sqlV1_04_roles_permissions.sqlV1_05_issues_workflow.sqlV1_06_extra_tables.sqlv1_07_extra_tables_02.sql
- Run the SQL migration files in the
-
Seed the database (optional)
python src/seed.py
-
Run the application
poetry run python src/app.py
If you prefer to run the application using Docker:
-
Clone the repository
git clone <repository-url> cd prokoi
-
Set up environment variables Create a
.envfile in the root directory with your cloud service credentials:# Database Configuration (PostgreSQL Cloud) DB_HOST=your-postgresql-cloud-host DB_PORT=5432 DB_USER=your-database-user DB_PASSWORD=your-database-password DB_NAME=your-database-name # Security Configuration SECRET_KEY=your_secret_key_here ALGORITHM=HS256 ACCESS_TOKEN_EXPIRE_MINUTES=30 # Redis Configuration (Redis Cloud) REDIS_HOST=your-redis-cloud-host REDIS_PORT=your-redis-port REDIS_PASSWORD=your-redis-password
-
Build and run with Docker
docker build -t prokoi . docker run -p 8000:8000 --env-file .env prokoi
The API will be available at http://localhost:8000