Skip to the content.

SMS-Appointment-Reminders

Introduction

This app connects the appointment data stored in the TrakGene SQL Server database with the SMS provider Twilio to send appointment reminders. The web homepage displays appointment information for users who are eligible to send reminders. The operator can configure the reminder time and SMS template in the interface. In addition, the configuration interface provides options for different time zones to automatically start scheduled tasks to send appointment reminders in batches.

Getting Started (Only For Developers)

Installing Node

Installing Express

Installing dotenv

Installing node-mssql to connect Microsoft SQL Server

Installing Twilio-node

How To Set Environment Variables for Twilio (Optional)

Installing Node-Cron Package

Installing Moment Timezone

Start App

Development Manual

This app is basically implemented by “MSSQL + Express.js + Node.js + Bootstrap + Pug” stack.

/node_modules: Directory of npm installation package.

/routes: Directory of routing files.

/views: Directory of Pug template files.

app.js: App entry file.

.env The environment variable file is used to store Twilio’s confidentials and database connection data.

config.js: Used to read .env data to connect to the TrakGene SQL Server database and Twilio server.

scheduler.js: Used to launch a scheduled task according to the specified time zone.

/notifications

package.json/package-lock.json:. Used to record the configuration information of the project, and the dependencies of various modules.

kt_sms_config(MSSQL Table): This new table is created in the TrakGene database to record the SMS configuration updates.

Deployment & Testing