Frontend and Backend services for Agape Clinic
Simple HTML/CSS/JS interface, using Bootstrap 4 and JQuery
Requires Node v12.16.2 (LTS)
Please ensure the following environment variables are set in a .env file placed in the same directory as index.js
// Referrals
MAIL_HOST={your SMTP host}
MAIL_USER={mailer user account}
MAIL_PASS={mailer user password}
// MOTD (Message of the day)
PUBLIC_HTML_PATH={path of index.html for template to be generated}
MOTD_SECRET={secret for 2fa authentication to change MOTD}
Ensure the mailing-list
file is present in the same directory as index.js
, containing the emails that each referral form will be mailed to (demarcated by newlines)
doctor1@testclinic.com
doctor2@testclinic.com
To start the server: node index.js
When the service is running send a GET request to {yourdomain}.com/referral/health
to perform a self test and ensure the configuration is correct.