Skip to content

webbtech/shts-pdf-gen

Repository files navigation

Shorthills TreeService PDF Generator Lambda Function

Lambda function to create Estimate and Invoice PDF files

Issues

  • when building for first time, ran into issue as outlined here

Project Layout

In an attempt to balance simplicity with testablity etc. this layout seems to work fairly well. However, I'm also inspired by what I see here (repo) and may adopt some of those principles.

Realm Functions DB Connection

An example of accessing atlas from a Realm function:

const db = context.services.get("mongodb-atlas").db("shorthills").collection("Estimate");
db.updateOne({_id: _id}, {$set: {'updatedAt': new Date()}});

About

Shorthills TreeService PDF Generator Lambda Function

Resources

Stars

Watchers

Forks

Packages

No packages published