Skip to content

RamzMA/Event2Nite

Repository files navigation

Event2Nite

This is a Vite + React project using Firebase for authentication and Firestore for data storage.

Install dependencies

npm install

Start development server

npm run dev

Build for production

npm run build

Lint the code

npm run lint

Project structure

  • src/ contains all source code
  • src/components/ contains React components
  • src/auth/ contains authentication context and helpers

Notes

  • Firestore collections: users, events, userLikes.
  • User documents are created automatically on login if missing.

Deployment

  • Vercel: ensure SPA routes survive refreshes by keeping vercel.json at the repo root. It rewrites all requests to /, allowing React Router to handle /managerEvents, /create-event, and other deep links without 404s.

Firebase App Check

This project initializes Firebase App Check using a reCAPTCHA Enterprise provider (see src/firebase.js). To enable it:

  1. Create a reCAPTCHA Enterprise key in the Firebase Console under App Check for your web app.
  2. Copy the public site key and add it to a local .env file as VITE_RECAPTCHA_ENTERPRISE_KEY=<your_site_key>.
  3. (Optional) For local development, set VITE_APPCHECK_DEBUG_TOKEN=<debug_token> or true to auto-generate. Never use the debug token in production.
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors