Manages subscriber operations for my blog.
firebase functions:config:set mailgun.api_key=<api_key>
firebase functions:config:set mailgun.domain=<domain>
firebase functions:config:set mailgun.email=<admin_email>
firebase functions:config:get > functions/.runtimeconfig.json
Within the funcitons
dir:
# install or upgrade firebase-tools globally
npm install -g firebase-tools
# update both the CLI and the SDK
npm install firebase-functions@latest firebase-admin@latest --save
# install dependencies
npm install
# login
firebase login
-
Update
publish.sh
with the correct<post_header>
and<post_url>
values. -
Serve functions locally:
npm run serve
-
Run
./publish.sh