This repo contains the serverless part of factAE, based on Firebase Cloud
Functions. Functions are located
in functions/
.
Generates a PDF document encoded in base64.
To start the HTML preview server: yarn start
To build the PDF: yarn build
By default, it will use the default
theme. To change it, add the THEME
env
var to your commands. Themes available are located in functions/themes/
.
To submit a new theme:
- Copy the
functions/themes/default
folder - Adjust
template.pug
andstyles.scss
- Once ready, build the pdf with
THEME=my-theme yarn build
- Propose a pull request
Validates a Stripe payment. The STRIPE_API_KEY
env var
is required to validate the transaction.
Sends a mail via Mailgun. The env vars
MAILGUN_HOST
, MAILGUN_USER
and MAILGUN_PASS
are required.