- Python 3.x
- Node.js and npm
- PostgreSQL
# Create database
psql -U postgres
CREATE DATABASE "APOdb";
\q
# Initialize schema
psql -U postgres -d APOdb -f db/init/init.sql
cd backend
pip install -r requirements.txt
cp .env.example .env
Edit .env
with your PostgreSQL password:
DB_NAME=APOdb
DB_USER=postgres
DB_PASSWORD=YOUR_PASSWORD_HERE
DB_HOST=localhost
DB_PORT=5432
cd frontend
npm install
Terminal 1 - Backend:
cd backend
python app.py
Backend runs on http://127.0.0.1:5001
Terminal 2 - Frontend:
cd frontend
npm run dev
Frontend runs on http://localhost:5173
Open your browser and go to http://localhost:5173
- Ensure PostgreSQL is running:
brew services start postgresql
- Verify database credentials in
.env
file - Check both backend and frontend are running on correct ports