-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
| Requirement | Version | Notes |
|---|---|---|
| Python | 3.11+ | Backend (Flask, psycopg2) |
| Node.js | 18+ | Frontend (Next.js) |
| PostgreSQL | 14+ | Or Docker (see below) |
| Git | — | Clone the repository |
Ensure python (or python3), node, npm, and optionally psql are on your PATH.
git clone <repository-url>
cd HRSA-Simpler-PPRSdocker run -d --name postgres-local \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=admin \
-e POSTGRES_DB=rei_community_dev \
-p 5432:5432 \
postgres:15Verify: docker ps should list postgres-local.
- Install PostgreSQL 14+ and create a database and user, or:
psql -U postgres -c "CREATE USER admin WITH PASSWORD 'admin';"
psql -U postgres -c "CREATE DATABASE rei_community_dev OWNER admin;"cd backend-
Virtual environment (recommended):
python -m venv venv # Windows (PowerShell): .\venv\Scripts\Activate.ps1 # macOS/Linux: source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Environment:
cp .env.example .env
Set
DATABASE_URL(e.g.postgresql://admin:admin@localhost:5432/rei_community_dev) or Azure variables. See Environment Configuration. -
Create tables and seed:
python database/init_db.py python database/seed_data.py
-
Load static data (menu, header nav, SVP config, plans):
psql "$DATABASE_URL" -f scripts/init_static_data.sqlWindows (PowerShell):
psql $env:DATABASE_URL -f scripts/init_static_data.sql -
Start backend:
python app.py
Backend runs at http://localhost:3001. Leave the terminal open.
In a new terminal from the project root:
cd frontend
npm installSet NEXT_PUBLIC_BACKEND_URL in .env.local if the backend is not at http://localhost:3001. Then:
npm run devFrontend runs at http://localhost:3000.
- Open http://localhost:3000/login
- Log in: admin / admin
- You should see the welcome/home page.
- Optional: http://localhost:3001/health or http://localhost:3001/api/health for backend health.
| Issue | What to try |
|---|---|
| Backend: connection refused / database unavailable | Ensure PostgreSQL is running. Check .env and DATABASE_URL. |
| Backend: relation does not exist | Run init_db.py, seed_data.py, and scripts/init_static_data.sql. |
| Windows: Unicode error in init_db |
$env:PYTHONIOENCODING = 'utf-8' then re-run the Python scripts. |
| Frontend: API errors or CORS | Confirm backend is on port 3001 and frontend uses that URL. |
| Port in use | Change PORT in backend .env or run Next.js on another port (e.g. npm run dev -- -p 3002). |
Home · API Reference · Deployment
© 2026 REI Systems. All rights reserved.
Community Development Platform
Getting Started
Development
Features
Reference
Deployment