Starter kit for Firebase Functions
- Firebase Authentication Token Validator
- Realtime Database CRUD
- Connect to other Google Cloud Services
- Base on Express.js
- Typing
TypeScript!!
Create an account at https://firebase.google.com/
- Install Yarn if you don't have Yarn installed
brew install yarn - Install Firebase Tools if you don't already have it installed
npm install -g firebase-toolsorsudo npm install -g firebase-tools
npm i -g fire-functions-cli- Run
firefunc new <projectName>(CamelCaseorkebab-case) - Now, initialize Firebase Functions
- And final step: Deploy
firefunc deploy
Now, you are all set!
Working with FireFunctions makes Firebase Functions delpoy very easy. All your code goes in ./src folder. Where all your express API code will go under ./src/api, model creation will go under ./src/model, trigger creation will go under ./src/triggers and all other library initializtion will go under ./src/lib.
Full documentation will be updated soon.
Create the environment files below in ./src/environments
exports.environment = {
-- ALL YOUR GLOBLE VALUES --
};