micahstubbs / sms-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMS-Web

Description

Receives SMSs from Twilio, pulls out the relevant data, and enqueues that data in an AWS SQS queue.

Requirements

OR

  • Golang 1.3
  • Godep
  • A .env file with the following items...
    • The first three items in the example .env file below (AWS credentials and environment) MUST be in that order at the top of the file.
ACCESS_KEY_ID=
SECRET_ACCESS_KEY=
ENVIRONMENT=development
QUEUE_PREFIX=vip-sms-app
PROCS=24
LOGGLY_TOKEN=
NEWRELIC_TOKEN=
TWILIO_SID=

Development System Setup

To set your system up to develop this application...

  1. Make sure you have everything from the requirements section
  2. Run bundle

Docker Development System Setup

It is potentially easier to develop with Docker.

To compile and run the project, the typical docker build and run commands will work. When running, you will need to have the environment variables above set, because the docker version does not use the .env file.

With the environment variables set, the commands are:

$ docker build -t sms-web .
$ docker run -p 8080:8080 sms-web

Commands

Run Tests

godep go test ./...

Deploy

See the sms-compose repository for deployment instructions.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 84.4%Language:Ruby 15.6%