Skip to content

CruzHacks/cruzhacks-2021-function-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CruzHacks 2021 Firebase Functions Template

This is a repository for a template to deploy a firebase function. Use it whenever you are creating a new firebase function.

cruzhacks-firebase-template

Development

Dependnecies

  • Can be found inside package.json file. Installed using the following command:
    • yarn or yarn -i or yarn install within the /functions directory

Start

yarn serve

  • Begin an emulator suite at localhost:4000 with your function being served at localhost:5000. You can navigate the UI of the Emulator Suite to find the actual endpoint.

Test

This project uses Jest. Run all tests via yarn test.

Environment Variables

Can be obtained by running firebase functions:config:get > .runtimeconfig.json within your /functions directory

Request Schema

$ request schema goes here

Response Schemas

Successful Response Case #1

{
    "response": "schema goes here"
}

Failed Response Case #2

{
  "response": "schema goes here"
}

Failed Response Case #3

{
  "response": "schema goes here"
}

Technologies

  • Firebase Functions
  • NodeJS
  • Jest
  • Github Actions
  • Prettier
  • Eslint

About

Template repository for creation of firebase functions

Resources

License

Stars

Watchers

Forks