ETA notifications implementation with Node.js/Express and Twilio.
-
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
-
Clone the repository and
cd
into it.$ git clone git@github.com:TwilioDevEd/eta-notifications-node.git $ cd eta-notifications-node
-
Install the application dependencies
$ npm install
-
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.
-
Seed the initial data into the database
$ mongo localhost/eta-notifications-node seed/orders.js
-
Start the development server
$ npm start
-
Expose the application to the wider Internet. We recommend using ngrok to solve this problem
$ ngrok http 3000
That's it!
-
Run tests
$ mocha test
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.