Platform for business automation with AI agents.
- Docker & Docker Compose (for Backend & Database)
- Node.js (v18 or higher) (for Frontend)
The backend runs in Docker containers (FastAPI, PostgreSQL, Redis).
-
Navigate to the project root:
cd "Profit Flow"
-
Start the services:
docker-compose up -d --build
This command builds the backend image and starts PostgreSQL, Redis, and the FastAPI server.
-
Check if backend is running:
- API Docs: http://localhost:8001/docs
- Health Check:
docker psshould showprofit_flow_backend,profit_flow_db, andprofit_flow_redisas healthy/up.
The frontend is a React application.
- Open a new terminal and navigate to the
frontenddirectory:cd frontend - Install dependencies (first time only):
npm install
- Start the development server:
npm run dev
- Open the application in your browser: http://localhost:5173
The backend configuration is located in backend/.env. Key variables:
OPENAI_API_KEY: Your OpenRouter/OpenAI API key.DATABASE_URL: Connection string for PostgreSQL (automatically set in Docker).
Frontend connects to http://localhost:8001 by default (configured in src/shared/api/client.ts).
- Stop Backend:
docker-compose down - View Backend Logs:
docker-compose logs -f backend - Restart Backend:
docker-compose restart backend - Rebuild Backend (after new pip packages):
docker-compose up -d --build backend