This repository is a NodeJS script that send emails to remind the birthday of someone (from a JSON file).
- Clone the repository on your computer.
- Type
npm installto install dotenv and nodemailer (required to make the program work). - Rename the file
.env_examplein.env. - Insert your own data in the
.envfile (e.g. to be able to send mail). - Rename the file
birthdays.json_exampleinbirthdays.json. - Insert your own data in the
birthdays.jsonfile. - Run
node index.jsto start the program - Enjoy!
You may want to deploy this project using Ansible. It uses the Ansible Suitcase and will deploy the project in a Docker container plus a crontab (which will run at 7:03am).
Be sure to configure your host in inventory.yml
and then run ./ops/birthsible.
Thanks to @ponsfrilus for the help on the script. Thanks to https://freshservice.com/general/top-it-quotes-blog/ for the quotes. Thanks to https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/Notepad_plus.cpp#L7103 for the quotes.