This is a simple single page web app that allows a user to calculate their earnings by providing their hours worked per week, and hourly rate. The app would produce the results, and give the user the option of sending their results an email address of their choice.
- Mail Gun api key
- Mail Gun Sandbox Domain
- Mail Gun SMTP Login
- An authorized email recipient added in the Mail Gun dashboard
- Edit the .example.env and save as ".env"
MAILGUN_API_KEY = YOUR_API_KEY
MAILGUN_DOMAIN = YOUR_DOMAIN
MAILGUN_SMTP = YOUR_SMTP
If you don't want to use your own email to test you can use https://www.mailinator.com/ to test receiving emails, you will however still have to add their provided email address as an authorized recipient.
Simply go into root directory of the app and run
$ npm install
$ node index.js
And go to localhost:8080 in Chrome
- ExpressJS
- mailgun-js
- Dotenv
- body-parser