Delete Static Web Apps workflow, Bicep infra, Azure Functions api/, SWA configs, and Azure-only scripts; document Proxmox deploy path and refresh QuickStart and prerequisites. Co-authored-by: Cursor <cursoragent@cursor.com>
1.6 KiB
1.6 KiB
Quick Start Guide
Fast path to run, test, and deploy the Miracles in Motion public site.
1. Prerequisites
| Tool | Version | Notes |
|---|---|---|
| Node.js | 22.x | CI and local dev |
| npm | 10+ | Use npm ci (.npmrc sets legacy-peer-deps) |
| ImageMagick | any recent | Required for npm run brand:export / prebuild |
| Git | latest |
Production deploy additionally requires LAN access to Proxmox — see PROXMOX_DEPLOYMENT.md.
2. Clone & install
git clone https://github.com/Order-of-Hospitallers/miracles_in_motion.git
cd miracles_in_motion
npm ci
3. Environment
Copy .env.example to .env.local (do not commit secrets):
VITE_API_BASE=/api
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_xxx
VITE_DEFAULT_LANGUAGE=en
4. Run locally
npm run dev
# http://localhost:5173
5. Test & validate
npm test # unit tests (Vitest)
npm run type-check # tsc --noEmit
npm run a11y:header-audit # WCAG header contrast tokens
npm run validate:ci # all three above
6. Production build
npm run build
# output: dist/
npm run preview # optional local preview
7. Deploy to mim4u.org (Proxmox)
From the proxmox repo on operator LAN:
./scripts/mim4u-deploy-to-7810.sh
Verify:
curl -I -H 'Host: mim4u.org' http://192.168.11.37/
8. CI
GitHub Actions runs on PR (validate.yml) and main push (deploy.yml). See DEPLOYMENT_PREREQUISITES.md.