No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
env
logger
queue
routes
script
sms
status
vendor/github.com
.dockerignore
.gitignore
Dockerfile
LICENSE
readme.md
sms-web.go
sms-web@.service.template

readme.md

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.10
  • 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.