-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Zachary edited this page Apr 12, 2026
·
2 revisions
- Python 3.11+
- Node.js 18+
- PostgreSQL 15
- Docker (recommended)
git clone https://github.com/FieldOpt/FieldOpt.git
cd fieldopt
# Backend
pip install -r requirements.txt
# Frontend
npm install --prefix frontend# Terminal 1: Backend
python -m uvicorn backend.api.main:app --reload --host 0.0.0.0 --port 8000
# Terminal 2: Frontend
npm run dev --prefix frontend
# Terminal 3: Database (Docker)
docker run -d --name fieldopt-db -e POSTGRES_PASSWORD=fieldopt -p 5432:5432 postgres:15Access at: http://localhost:5173
git clone https://github.com/FieldOpt/FieldOpt.git
cd fieldoptCreate .env in /backend:
DATABASE_URL=postgresql://fieldopt:fieldopt@localhost:5432/fieldopt
API_HOST=0.0.0.0
API_PORT=8000
API_RELOAD=true
CORS_ORIGINS=["http://localhost","http://127.0.0.1","http://localhost:5173"]
LOG_LEVEL=INFO
DEBUG=trueUsing Docker:
docker run -d \
--name fieldopt-postgres \
-e POSTGRES_USER=fieldopt \
-e POSTGRES_PASSWORD=fieldopt \
-e POSTGRES_DB=fieldopt \
-p 5432:5432 \
postgres:15-alpineInitialize seed data:
cd backend
python -m backend.database.reset_dbpip install -r requirements.txt
python -m uvicorn api.main:app --reload --host 0.0.0.0 --port 8000Backend will be at: http://localhost:8000
cd frontend
npm install
npm run devFrontend will be at: http://localhost:5173
Visit: https://demo.fieldopt.dev
The demo runs on AWS EC2 with:
- Fresh seed data (jazz musicians, NYC venues)
- Database resets every hour
- Full feature access
- Real dispatch console in action
npm run build --prefix frontend
docker compose upAccess at: http://localhost
The demo and local setup come with sample data:
- John Zorn
- Miles Davis
- Chet Baker
- John Coltrane
- Thelonious Monk
- Billie Holiday
- And more...
- Blue Note
- Village Vanguard
- Apollo Theater
- Carnegie Hall
- Lincoln Center
- And more...
Each technician has skills assigned: install, repair, maintenance, disconnect, service_change, inspection
- Make sure PostgreSQL is running:
docker ps | grep postgres - Check
DATABASE_URLin.envis correct
# Kill the process using that port
lsof -i :5173
kill -9 <PID># Reinstall dependencies
pip install -r requirements.txt --force-reinstall
npm install --prefix frontend- Clear browser cache (Cmd+Shift+Delete)
- Check DevTools Console for errors
- Make sure backend is running on port 8000
- Explore the Features to see what you can do
- Check out the API Documentation if integrating
- Read Architecture to understand how it works
- See Deployment to get it running in production
FieldOpt Wiki
Resources