cesarmerlo / nextjs-vercel-firebase

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

Home Page:https://leerob.io/blog/nextjs-firebase-serverless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://leerob.io/blog/nextjs-firebase-serverless


Languages

Language:JavaScript 100.0%