This project requires running 5 separate services simultaneously. Follow the instructions below to set up and run the complete application.
- Node.js and npm
- Python 3.x
- Required environment variables (
.envfiles for each service)
You'll need 5 terminal windows to run all services. Follow these steps in order:
cd server
npm install
npm startcd client
npm install
npm run devcd Backend/chatbotCommon Setup Steps (for all Python services):
python -m venv venv
./venv/scripts/activate # On Windows
# source venv/bin/activate # On Mac/Linux
pip install -r requirements.txtRun the service:
uvicorn app:app --reloadcd Backend/AI_ServerFollow the Common Setup Steps mentioned above, then:
python app.pycd Backend/AI_Server/Edit_ServerFollow the Common Setup Steps mentioned above, then:
python ai_edit.pyWhen installing dependencies for Terminal 4 and Terminal 5, you may encounter errors with psycopg. To fix this:
# Uninstall all psycopg variants
pip uninstall psycopg psycopg2 psycopg2-binary psycopg3 -y
# Install the binary version
pip install psycopg2-binaryThis issue typically occurs during the pip install -r requirements.txt step. Apply this fix in both the AI Server and Edit Server environments.
Make sure to create appropriate .env files for each service with the required environment variables before running the services.
- Server - Main backend server
- Client - Frontend application
- Chatbot - Chatbot backend service
- AI Server - CP + Heuristic AI service
- Edit Server - Agentic AI editing service
- Ensure all services are running on different ports to avoid conflicts
- Check that all
.envfiles are properly configured - Verify Python virtual environments are activated before installing dependencies
- If you encounter port conflicts, check and modify port configurations in respective service files
- Keep all 5 terminals running simultaneously for the application to function properly
- Services may take a moment to start up; check terminal output for success messages
- Some services use
--reloadflag for auto-reloading during development