Skip to content

Firebase serverless api starter with unit testing using mocha test runner and chai

Notifications You must be signed in to change notification settings

hayelomt/firebase-serverless-api

Repository files navigation

Firebase Serverless rest api starter

Setup

  1. Create firebase project
  2. Download service key from project settings and copy to functions/serviceKey.json
  3. Create new web app config in project settings and copy to functions/src/features/auth/auth.service.ts
  4. Install java for emulators
  5. Install firebase-tools: npm i -g firebase-tools
  6. Install functions dependencies in functions folder: npm install
  7. Start dev in functions folder: npm run dev
  8. Start emulator from root folder: firebase emulators:start

For testing check functions/README.md