Skip to content

Monorepo to deploy a Firebase Node API alongside a Next.js app.

Notifications You must be signed in to change notification settings

Davst/Togma

 
 

Repository files navigation

Next.js + Now + Firebase

An example of a Monorepo to deploy a Firebase Node API alongside a Next.js app.

Built With

Running Locally

Setup

  1. Create a project in Firebase.
  2. You will need to add your Firebase Service Account in /app/.firebase/service-account.json.
  3. Update your databaseURL in server.js.
  4. Modify the route in routes/api/index.js to match your database structure.
  5. now.json as well as /pages/city.js can then be modified to match your database structure.

Start API Server

$ now dev

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

Deploying

From the root directory.

$ now --target production

About

Monorepo to deploy a Firebase Node API alongside a Next.js app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%