Skip to content

arcyleung/agapeclinic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

doctor1@testclinic.com
doctor2@testclinic.com

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.

About

Frontend and Backend services for agape clinic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published