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 install
to install dotenv and nodemailer (required to make the program work). - Rename the file
.env_example
in.env
. - Insert your own data in the
.env
file (e.g. to be able to send mail). - Rename the file
birthdays.json_example
inbirthdays.json
. - Insert your own data in the
birthdays.json
file. - Run
node index.js
to 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.