/nextjs-vercel-firebase

Next.js app using API routes to connect with Firestore.

Primary LanguageJavaScript

Next.js + Vercel + Firebase

Next.js app using API routes to connect with Firestore.

Built With

Running Locally

Setup

  1. Create a project in Firebase.
  2. Download your Firebase Service Account.
  3. Create a new file .env.local and add environment variables (see .env for example).
  4. Modify the API route to match your database structure.

Run Locally

$ vc dev

Next.js app + API available at http://localhost:3000.

Deploying

From the root directory.

$ vc --prod