Skip to content
Node implementation of Appointment Reminders
Branch: master
Clone or download
smendes Merge pull request #8 from mateustav/patch-1
Fix attribute quotation mark wrapping
Latest commit 83e2129 Mar 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
models
public Add linter and fix issues May 2, 2017
routes
test Deprecated Mongo functions Nov 16, 2018
views
workers
.env.example Update .env.example Nov 19, 2018
.eslintrc.yml
.gitignore Use dotenv-safe. Cosmetic changes to README May 1, 2017
.travis.yml Remove redundant `npm install` Nov 8, 2016
LICENSE Initial commit Feb 15, 2016
README.md
app.js
config.js
package-lock.json
package.json
scheduler.js

README.md

Twilio

Appointment Reminders. Powered by Twilio - Node.js/Express

Build Status

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.

  1. 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:

  1. Clone this repository and cd into it

    git clone git@github.com:TwilioDevEd/appointment-reminders-node.git
    
    cd appointment-reminders-node
  2. Install dependencies

    npm install
  3. Copy the sample configuration file and edit it to match your configuration

    cp .env.example .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings. You will also need a TWILIO_PHONE_NUMBER, which you may find here.

    You can reuse the MONGO_URL_TEST for MONGO_URL for most default installs. Otherwise, use your production Mongo installation.

    Run source .env to export the environment variables

  4. 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 ./bin/www
  5. 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.
You can’t perform that action at this time.