这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

soywod/factae-functions

Repository files navigation

⚠️ Project archived, due to lack of interest.

Functions

This repo contains the serverless part of factAE, based on Firebase Cloud Functions. Functions are located in functions/.

generatePdf

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 and styles.scss
  • Once ready, build the pdf with THEME=my-theme yarn build
  • Propose a pull request

charge

Validates a Stripe payment. The STRIPE_API_KEY env var is required to validate the transaction.

sendMail

Sends a mail via Mailgun. The env vars MAILGUN_HOST, MAILGUN_USER and MAILGUN_PASS are required.

About

factAE Firebase Cloud Functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •