Giter Club home page Giter Club logo

server-notifications-node's Introduction

Twilio

Server notifications with Twilio, Node.js, and Express

Build Status

Use Twilio to send SMS alerts so that you never miss a critical issue.

Read the full tutorial here!

Local development

To run this project on your computer you will need to download and install either Node.js or io.js, both of which should also install npm.

You will also need to sign up for a Twilio account if you don't have one already.

  1. First clone this repository and cd into it.

    $ git clone [email protected]:TwilioDevEd/server-notifications-node.git
    $ cd server-notifications-node
  2. Next, open .env.example at the root of the project and update it with values from your Twilio account and local configuration. Save the file as .env. You'll need to set TWILIO_AUTH_TOKEN, TWILIO_ACCOUNT_SID, and TWILIO_NUMBER.

    For the TWILIO_NUMBER variable you'll need to provision a new number in the Manage Numbers page under your account. The phone number should be in E.164 format

    Run source .env to export the environment variables.

  3. Navigate to the project directory in your terminal and run:

$ npm install
This should install all of our project dependencies from npm into a local
`node_modules` folder.
  1. Make sure the tests succeed.

    $ npm test
  2. To launch the application, you can use node . in the project's root directory. 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.

    Make sure you have customized the config/administrators.json file with your phone number and then open http://localhost:3000/error. You'll get a text message shortly informing you of an exception.

    $ npm install -g nodemon
    $ nodemon .

Meta

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

server-notifications-node's People

Contributors

hortega avatar smendes avatar kwhinnery avatar nebtrx avatar cutofmyjib avatar joliveros avatar dprothero avatar mcelicalderon avatar piperchester avatar

Watchers

ojtam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.