Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1 KB

README.md

File metadata and controls

32 lines (25 loc) · 1 KB

Agape Clinic Referral Service

Frontend and Backend services for Agape Clinic

Frontend

Simple HTML/CSS/JS interface, using Bootstrap 4 and JQuery

Backend

Requires Node v12.16.2 (LTS)

Configuration

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)

Configuration

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.