Receives SMSs from Twilio, pulls out the relevant data, and enqueues that data in an AWS SQS queue.
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=
To set your system up to develop this application...
- Make sure you have everything from the requirements section
- Run
bundle
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
godep go test ./...
See the sms-compose repository for deployment instructions.