This is a Node Js sample that allows a basic creation of invoice and send email functionality
- Install Node 16
- npm install
- npm run start
- configure your .env file as per the .env.example
- You can install Insomnia
- then import src < ressources < Insomnia_2022-05-17.json to Insomnia
- Have fun ;)
- http://localhost:3000/invoice
- With payload
{
"clientId": "JN-H",
"items": [
{
"item": "Coaching JN",
"description": "TDD on Discord",
"quantity": 0.75
}
],
"paid":0,
"moreDetails": "Nothing to add here",
"debugMode": false
}