readme changed

This commit is contained in:
DeaDvey 2024-11-02 10:18:41 +00:00
parent a864ff2e03
commit 2066864f03

View File

@ -1,9 +1,26 @@
# htdocs
Files for my website (deadvey.com)
# Website<br/>
This is all the code for the website (deadvey.com)<br/>
See https://github.com/DeaDvey/node for the nodeJS files
# Node
The nodejs code that is executed in the background is in /node<br/>
You can execute the node code in crontab (`crontab -e`)<br/>
eg:<br/>
```
* * * * * 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
<br/>
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;
}
```