Git Product home page Git Product logo

respondr's Introduction

Respondr

Responder is a lightweight (2016 keyword of the year) NodeJS/MongoDB API for gathering and managing feedback from SMS messages sent to phone number(s)/short code(s) on Twilio (think of it like a ticketing system that people text).

Getting started

  • Clone the repository
  • npm install
  • Create a secrets.json file in the root (see the development configuration section below for more details)
  • npm start
  • Setup a Twilio SMS Messaging Service and set its REQUEST URL to https://YOURDOMAIN.COM/webhooks/twilio/sms

Current Endpoints

POST			/webhooks/twilio/sms		// TwiML Messaging Service SMS Handler
GET				/admin/messages					// List all messages received from Twilio
GET				/admin/message/:id			// View specific message by id
DELETE		/admin/message					// Delete a message by id
GET				/admin/tickets					// View ticket chains

Development Configuration

secrets.json

{
		"MESSAGING_SID": "XXX", // Twilio Messaging Service ID (restricts your endpoint to your messaging service)
    "MONGO_URI": "XXX", 		// the MongoDB connection string
    "API_USERNAME": "XXX", 	// the username used for basic auth
    "API_PASSWORD": "XXX", 	// the password user for basic auth
    "ROLLBAR_TOKEN": "XXX" 	// your Rollbar key for error tracking
}

Production Configuration

Respondr will look for ENV variables with the same names as the ones in secrets.json

Deployment

This application can be deployed pretty much anywhere NodeJS applications can (YMMV). We currently have it deployed on Microsoft Azure (albeit it feels kind of strange) using an app service and IISNODE for the web server (and it seems pretty performant).

Supported Platforms (confirmed)

  • Microsoft Azure

respondr's People

Contributors

mdubbs avatar

Watchers

James Cloos avatar  avatar

respondr's Issues

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.