Initial commit: CRDC Arrests API demo app
Deploy to Git Pages / build-and-deploy (push) Failing after 19s
Deploy to Git Pages / build-and-deploy (push) Failing after 19s
React + Vite static site demonstrating the CRDC School Arrest Rate API. Features 6 interactive charts comparing observed arrest data against Bayesian model estimates across U.S. school districts, with Civilytics visual identity. - State selector and district search with 'interesting' suggestions (top arrests) - Animated histogram loading grid showing posterior draw progress - Charts: time series, rate by group, district vs national, model comparison quadrants, density proxy, exceedance probability - Static JSON fixture for national rates (no API changes needed) - Dockerfile + docker-compose.yml for self-hosted deployment - GitHub Actions workflow and _config.yml for Git Pages
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Docker Compose for local development or self-hosted deployment on your fleet.
|
||||
# Usage: docker compose up -d
|
||||
|
||||
services:
|
||||
crdc-demo:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:80" # Map host port 8080 → container port 80 (nginx)
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# Override to point at a staging API if needed; defaults to production.
|
||||
VITE_API_BASE: https://crdc-api.civilytics.org/api/v1
|
||||
Reference in New Issue
Block a user