SQS Consumer Boilerplate
Quick start
1. Get the latest version
Start by cloning the latest version of SQS Consumer Boilerplate on your local machine by running:
$ git clone -o sqs-consumer-boilerplate -b master --single-branch \
https://github.com/SSENSE/sqs-consumer-boilerplate.git MyConsumer
$ cd MyConsumer
yarn install
or npm install
2. Run Run consumer
# Export environment variables to your terminal
$ export $(cat ./.env | xargs)
# Run consumer as dev
$ yarn run dev
# npm run dev
# Or run as production
$ yarn start
# npm start
How to Build, Test, Deploy
If you need to run the app in production without docker, simply run:
$ yarn start
# or
$ npm start
Test
$ yarn test
# Get test coverage
$ yarn run coverage
Running with docker-compose
$ docker-compose up
Build Docker image
# Production dependencies only
$ docker build -t docker-user/my-consumer .
# With devDependencies
docker build -t docker-user/my-consumer --build-arg NODE_ENV=development .
Add your remote git repository
git remote add origin git@github.com:organization/my-repository.git
Libraries
Tools
TODO
- Add tests
License
This project is licensed under the MIT license, Copyright (c) 2017 SSENSE. For more information see LICENSE.md.