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
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
- Node.js
- TypeScript
- Google API Client Library
- Nodemailer
- PDFKit