Use Twilio to create automatic appointment reminders for your business users.
First you need to install Node.js and npm.
-
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 install mongodb
You should then be able to run a local server with:
$ mongod
To run the app locally:
-
Clone this repository and
cd
into it$ git clone [email protected]:TwilioDevEd/appointment-reminders-node.git $ cd appointment-reminders-node
-
Install dependencies
$ npm install
-
Edit the sample configuration file
.env
to match your configuration. Remember to set your MongoDb connection strings for both environments.If you are using a UNIX operating system, once you have edited the
.env
file, use the source command to load the variables into your environment.
$ source .env
-
Run the application
$ npm start
Alternatively 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 .
-
Check it out at http://localhost:3000
That's it
You can run the tests locally by typing
$ mocha test
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.