From 2066864f0390e911a2cbcfd358ca44d5037a8f1b Mon Sep 17 00:00:00 2001 From: DeaDvey Date: Sat, 2 Nov 2024 10:18:41 +0000 Subject: [PATCH] readme changed --- README.md | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9987fa4..6fe8be6 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,26 @@ -# htdocs -Files for my website (deadvey.com) +# Website
+This is all the code for the website (deadvey.com)
-See https://github.com/DeaDvey/node for the nodeJS files +# Node +The nodejs code that is executed in the background is in /node
+You can execute the node code in crontab (`crontab -e`)
+eg:
+``` +* * * * * node /var/www/html/node/makeblogs.js +* * * * * node /var/www/html/node/newsletter.js +* * * * * node /var/www/html/node/updatefeed.js -# TODO -Add relevant links to how JS works, linking to repo -Mirror on Gitlab -Make all webpages work with nodejs fully preloaded, so no client side JS neccersarry +etc... + +``` + +# Newsletter +
+If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js: +``` +let members = ["member1@gmail.com","member2@outlook.com"] + +if (typeof module !== 'undefined' && module.exports) { + module.exports = members; +} +```