SA Solar Compliance Engine v2 - Full-stack SaaS for evaluating South African solar installations against municipal/grid compliance codes
# SA Solar Compliance Engine (v2) – Starter SaaS Module
## What's included
- FastAPI backend with:
- JWT Auth (Bearer tokens)
- RBAC roles: installer / engineer / admin
- Safe rule evaluation (simpleeval, no Python eval)
- Evidence upload + list per project
- Audit log (admin)
- PDF compliance pack generator (engineer/admin)
- Admin ruleset upsert endpoint
- React frontend with:
- Login
- Evaluate rules
- Upload evidence + generate report
- Admin panel for rulesets + audit log
## Run with Docker
```bash
docker compose up --build
```
API:
localhost
Web:
localhost
## Default admin login
- email: admin@local
- password: admin123
## Important production notes
- Replace JWT_SECRET
- Replace SQLite with Postgres + migrations
- Add rate limiting + CSRF strategy for admin endpoints
- Use signed URLs or object storage (GCS/S3) for evidence