Skip to content

Kaspyy/nodejs-invoice-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Invoice Generator

A Node.js app that generates an invoice in PDF format and sends it as a attachment in personalized email.
It could easily be implemented in e-commerce web app that uses Node.js

Installation

First, configure the .env file with your credentials

SENDER_EMAIL=<your email>
SENDER_PASSWORD=<your password>
RECEIVER_EMAIL=<your email> # it is only for testing purposes
OAUTH2_CLIENT_ID=<your client id>
OAUTH2_CLIENT_SECRET=<your client secret>
OAUTH2_REFRESH_TOKEN=<your refresh token>

Then, in projects main directory, simply run:

npm install
npm start

Technologies