appointment-reminders-node
appointment-reminders-node copied to clipboard
Node implementation of Appointment Reminders
Appointment Reminders. Powered by Twilio - Node.js/Express
Use Twilio to create automatic appointment reminders for your business users. For a step-by-step tutorial see twilio docs.
Local development
First you need to install Node.js.
-
This sample application stores data in a MongoDB database using Mongoose. You can download and run MongoDB yourself (on OS X, Linux or Windows).
On OS X, maybe the easiest way to get MongoDB running locally is to install it via Homebrew.
brew tap mongodb/brewbrew install mongodb-communityYou should then be able to run a local server with:
mongod
To run the app locally:
-
Clone this repository and
cdinto itgit clone [email protected]:TwilioDevEd/appointment-reminders-node.git cd appointment-reminders-node -
Install dependencies
npm install -
Copy the sample configuration file and edit it to match your configuration
cp .env.example .envYou can find your
TWILIO_ACCOUNT_SIDandTWILIO_AUTH_TOKENin your Twilio Account Settings. You will also need aTWILIO_PHONE_NUMBER, which you may find here.You can reuse the
MONGO_URL_TESTforMONGO_URLfor most default installs. Otherwise, use your production Mongo installation.Run
source .envto export the environment variables -
Run the application
npm startAlternatively you might also consider using nodemon for this. It works just like the node command but automatically restarts your application when you change any source code files.
npm install -g nodemon nodemon ./bin/www -
Check it out at http://localhost:3000
That's it
Run the tests
You can run the tests locally by typing
npm test
Meta
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.