Documentation Engineer, Netlify
@verythorough
/tableflip
(╯°□°)╯︵ ┻━┻
1. Create a project on Firebase
2. Install firebase-tools and log in
$ npm install -g firebase-tools
$ firebase login
3. Initialize a Functions project
$ firebase init
4. Write some code in /functions/index.js
const functions = require('firebase-functions');
exports.helloWorld = functions.https.onRequest((req, res) => {
res.status(200).send('Hello!')
})
5. Connect to your project (if needed) and deploy
$ firebase use --add <project-name>
$ firebase deploy --only functions
1. Make a new app
2. Create a slash command
2. Create a slash command