This is a Vite + React project using Firebase for authentication and Firestore for data storage.
npm installnpm run devnpm run buildnpm run lintsrc/contains all source codesrc/components/contains React componentssrc/auth/contains authentication context and helpers
- Firestore collections:
users,events,userLikes. - User documents are created automatically on login if missing.
- Vercel: ensure SPA routes survive refreshes by keeping
vercel.jsonat the repo root. It rewrites all requests to/, allowing React Router to handle/managerEvents,/create-event, and other deep links without 404s.
This project initializes Firebase App Check using a reCAPTCHA Enterprise provider (see src/firebase.js). To enable it:
- Create a reCAPTCHA Enterprise key in the Firebase Console under App Check for your web app.
- Copy the public site key and add it to a local
.envfile asVITE_RECAPTCHA_ENTERPRISE_KEY=<your_site_key>. - (Optional) For local development, set
VITE_APPCHECK_DEBUG_TOKEN=<debug_token>ortrueto auto-generate. Never use the debug token in production. - Restart the dev server so Vite picks up the new variables.
If the site key is missing, the app will log a warning and proceed without App Check protection. Once enabled, Firestore/Storage requests automatically attach App Check tokens.