Cloud functions for fire-form
To use this repo, you need to setup fire-form.
Currently available
- Notify Slack when contact form submitted
✅ Create incoming web hook of slack. Detail here
✅ Make firebase project to Blaze. (It’s necessary for deploy cloud function)
✅ Login your fire base account with firebase login command.
$ firebase login
Set your Firebase project ID in .firebaserc
{
"projects": {
"default": "your_project_id_here"
}
}
- Then set slack incoming web hook url in index.ts
const webhook = new IncomingWebhook("https://hooks.slack.com/services/your_web_hook_url");
- Deploy functions
firebase deploy
That’s all! Check a message send to the channel.