Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collisions

Minimal Next.js landing page for NYU Bobst "Collisions" meetups.

Stack

  • Next.js (App Router)
  • Firebase (Firestore starter integration)
  • Vercel-ready deployment

Run locally

  1. Install dependencies:
npm install
  1. Copy env file and add your Firebase project values:
cp .env.example .env.local
  1. Start dev server:
npm run dev

Open http://localhost:3000.

Firebase setup

  1. Create Firebase project.
  2. Enable Firestore.
  3. Add a web app in Firebase console.
  4. Copy SDK config values into .env.local.
  5. In Firestore rules, allow writes from authenticated users (recommended) or from your app during testing.

Email-link verified users can create or join tables in the tables collection.

Firestore data model (current)

  • tables/{id}
    • topic, location, slot
    • maxSeats (2-5)
    • hostAnonName, hostUid, hostEmail
    • status (confirmed)
    • attendees (array of host + members)
    • createdAt

Required Firebase Auth settings

  1. In Authentication, enable Email/Password provider.
  2. In Authentication settings, enable Email link (passwordless sign-in).
  3. Add your app domain to Authorized domains:
    • localhost
    • your Vercel domain (for example collisions.vercel.app)

Minimal Firestore rule for authenticated app users

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /tables/{tableId} {
      allow read: if true;
      allow create, update: if request.auth != null;
    }
  }
}

Deploy to Vercel

  1. Import this GitHub repo into Vercel.
  2. Add all NEXT_PUBLIC_FIREBASE_* variables and NEXT_PUBLIC_APP_URL in Vercel project settings.
  3. Deploy.

Suggested next features

  • Firebase Auth with NYU domain enforcement.
  • Real-time open seats per table.
  • Match confirmations and reminders.
  • Dynamic metrics pulled from Firestore.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages