GregBaugues / eta-notifications-node

GPS tracking implementation with Node.js and Twilio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ETA Notifications Node. Powered by Twilio - Node.js/Express

Build Status

ETA notifications implementation with Node.js/Express and Twilio.

Run the application

  1. Install MongoDB

    This application stores data on a MongoDB database using Mongoose. You can download and run MongoDB yourself (OS X, Linux, Windows).

    On OS X, 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
  2. Clone the repository and cd into it.

    $ git clone git@github.com:TwilioDevEd/eta-notifications-node.git
    
    $ cd eta-notifications-node
  3. Install the application dependencies

    $ npm install
  4. Copy the sample configuration file and edit it to match your configuration.Remember to set your MongoDB connection strings for both environments.

$ cp .env.sample .env

You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings.

  1. Seed the initial data into the database

    $ mongo localhost/eta-notifications-node seed/orders.js
  2. Start the development server

    $ npm start
  3. Expose the application to the wider Internet. We recommend using ngrok to solve this problem

    $ ngrok http 3000

That's it!

Run the tests

  1. Run tests

    $ mocha test

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

About

GPS tracking implementation with Node.js and Twilio

License:MIT License


Languages

Language:JavaScript 67.8%Language:HTML 19.6%Language:CSS 12.6%