Automatically create 4 images for Guayo with background and discount banner after receiving a POST request. Recieve email with pictures and Instagram text.
- Install ImageMagick
- Download or clone the repository
- Run
npm install
- Set environment variables for emailer: EMAIL and PASSWORD
- Run
npm start
- Send POST request to "/"
Sample POST request
{
"image": "https://i.imgur.com/EH2lAFf.png",
"promotionPrice": 70000,
"refPrice": 160000,
"companyName": "Company Name",
"productName": "Product Name",
"to": "[email protected]",
"productDescription": "Product Description",
"companyDescription": "Company Description"
}
Running on Heroku server
https://guayo-auto.herokuapp.com/