Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
public Add Firebase functions example (#422) Dec 12, 2017
src Update examples to recover from HMR error (#763) Sep 27, 2018
.firebaserc Add Firebase functions example (#422) Dec 12, 2017
.gitignore Add Firebase functions example (#422) Dec 12, 2017
README.md
firebase.json Add Firebase functions example (#422) Dec 12, 2017
index.js
package.json v3.0.0 Apr 16, 2019
razzle.config.js

README.md

Razzle with Cloud Functions for Firebase example

How to use

Download the example or clone the whole project:

curl https://codeload.github.com/jaredpalmer/razzle/tar.gz/master | tar -xz --strip=2 razzle-master/examples/with-firebase-functions
cd with-firebase-functions

Setting up firebase:

  • install Firebase Tools: npm i -g firebase-tools
  • create a project at Firebase console
  • replace in .firebaserc with the actual project ID

Install it and run:

yarn install
yarn start

Build client and server

yarn build

Deploy to firebase

yarn deploy

Access your app at <firebase-project-id>.firebaseapp.com

Idea behind the example

This is a basic example of how to use razzle with firebase functions and firebase hosting.

You can’t perform that action at this time.