podenborg / firebase-gatsby-example

A Google Cloud Firebase example running a Gatsby.js site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby on Firebase

This is an example Gatsby.js site running on Google Cloud Firebase. It features:

  • A static site runnin on Firebase Hosting
  • A serverless back-end for dynamic content running on Firebase Cloud Functions

Deploying

Run yarn to install dependencies, and deploy to Firebase:

yarn firebase deploy --project <your-project-id>

Local development

Because of a known issue with the Cloud Functions emulator, you have to install dependencies with yarn --ignore-engines to install dependencies if you want to use the local firebase server.

Afterwards, you can start the server:

yarn firebase serve --project <your-project-id>

About

A Google Cloud Firebase example running a Gatsby.js site


Languages

Language:JavaScript 100.0%