Skip to content

RobYed/rekobot-serverless

Repository files navigation

rekobot

Lamba functions for converting raw travel expense data (coming from a frontend of your choice) into a well formatted and signed PDF file (work in progress).

  • expense: turns a travel expense json into a properly formatted pdf preview

Install and Deploy

  1. npm install
  2. set-up your provider credentials
  3. npm run deploy

Test

  1. copy the POST API URL from console output after deployment
  2. start a POST Request to that API with:

In order to avoid unnecessary charges, you should remove all unused AWS ressources by running serverless remove after your tests.

TODO

  • data tranformations
  • template styling
  • input validation
  • signing the pdf
  • raise expense id before signing and persist it
  • add Authentification with Cognito
  • switch to TypeScript
  • send mail with pdf attached
  • add rekobot logo