mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-11 17:29:14 +02:00
1.7 KiB
1.7 KiB
Development Guide
Prerequisites
- Docker and Docker Compose
- Node.js (for frontend development)
- Python 3.12+ (for backend development)
- Git
Environment Setup
-
Clone the repository:
git clone https://github.com/R0m1k3/Priceflow.git cd Priceflow -
Configure environment variables:
cp .env.example .env # Edit .env to set your specific configurations (Database, AI keys, etc.) -
Create the Docker network (if using specific network setup):
docker network create nginx_default
Local Development
Backend (FastAPI)
-
Navigate to the backend directory:
cd app -
Install dependencies (recommended to use a virtual environment):
pip install -r requirements.txt # Or use a package manager like uv/poetry if configured -
Run the development server with hot reload:
uvicorn app.main:app --reload --port 8555The API will be available at
http://localhost:8555.
Frontend (React)
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Run the development server:
npm run devThe frontend will be available at the URL provided by Vite (usually
http://localhost:5173).
Database Migrations
This project uses Alembic for database migrations.
-
Create a new migration (after modifying models):
alembic revision --autogenerate -m "description of changes" -
Apply migrations:
alembic upgrade head
Testing
(To be configured - check tests/ directory for pytest usage)
pytest