Skip to content

kenta-takahashi-123/firebase-hosting-and-cloud-functions-template

Repository files navigation

Template for Firebase Hosting and Cloud Functions for Firebase

How to use

  1. Push Use this template or simply copy and paste this repository files to your repository.
  2. Copy .firebaserc.template as .firebaserc.
  3. Copy .env.template as .env.local.
  4. Copy config-template.ts as config.ts.
  5. Change project ID in .firebaserc, .env.* and env.ts to your Firebase project ID.

Setup

yarn install
yarn run login

Local development

yarn run serve

You can access http://localhost:5000 on your browser.

Development deploy

yarn run deploy:dev

Production deploy

yarn run deploy:prod