My Workflow
https://github.com/prajalsharma/doge-mailer/blob/main/.github/workflows/node.js.yml
Submission Category:
Wacky Wildcards
Yaml File or Link to Code
https://github.com/prajalsharma/doge-mailer
https://github.com/prajalsharma/doge-mailer/blob/main/.github/workflows/node.js.yml
About the Project
This project is a part of a GithubActions21 Hackathon by Dev Community. This project uses Nodemailer and CoinMarketCap API with github actions to automatically send you a mail everyday on your gmail regarding the cryptocurrency prices everyday along with Tenor API which sends the DOGE meme GIFS to make it more fun.
About Github Actions and the API's Used
GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub .
In my project I used Cron to automate the sending of email everyday . It was fairly easy to use for beginners as well . Before this, I had to look somewhere else to automate things like these but now it can be done in your github which saves a lot of time .
Then I used NodeMailer which carried out the task of sending mails whenever the program runs.
I used the CoinMarketCap API to retrieve and send the Cryptocurrency data through mail.
In the end , I used Tenor API to add a funny DOGE meme gif to make it more fun . It'll definitely make the reciever laugh :). Tenor is the hub of thouands of GIF's which we can use in our projects
Working samples
Environment Variables Used
USER_EMAIL = The email through which you want to send mails and give emailing access to the app.
USER_PASSWORD = This is not the actual password of the email but an app password which can be made for only the access of the specific app . In my case it was gmail access app password
EMAIL_FROM = This is the email through which you'll be sending the automated emails . It can only be one .
EMAIL_TO= This refers to the target email on which you want to send the automated mail . It can be as many as you want.
COINMARKETCAP_API_KEY = This is the API key of the CoinMarketCap API. You can use your own API key here .
TENOR_API_KEY = This is the API key of the Tenor API .
Additional Resources / Info
In the future I expect to make the UI more beautiful and funky.
Thank You if you made it till here .
Please leave a star on github or like this post .
Have a Great Day
Top comments (0)