# SpartanHack11
SpartaSafe – campus safety map and AI assistant. https://devpost.com/software/spartasafe ## Quick start (new machine)
- Install dependencies
npm.cmd install
- Create
.envwith your Supabase connection string
DATABASE_URL=postgresql://...
- Set up Prisma + DB
npx prisma migrate deploy
npx prisma generate
- Run the app
npm.cmd run dev
MSU Clery (campus incidents):
curl.exe -X POST "http://localhost:3000/api/cron/clery?start=0&length=250"
- Prisma config lives in
prisma.config.tsand readsDATABASE_URLfrom.env. - If you rotate DBs, restart the dev server so env vars reload.