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
# 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
If you need to run the app in production without docker, simply run:
$ yarn start
# or
$ npm start
$ yarn test
# Get test coverage
$ yarn run coverage
$ docker-compose up
# Production dependencies only
$ docker build -t docker-user/my-consumer .
# With devDependencies
docker build -t docker-user/my-consumer --build-arg NODE_ENV=development .
git remote add origin git@github.com:organization/my-repository.git
- Add tests
This project is licensed under the MIT license, Copyright (c) 2017 SSENSE. For more information see LICENSE.md.