development | master | production |
---|---|---|
This service provides local images to Chute for Pet Supplies Plus
.
The workflow is
- Rallio Local strategist likes/approve an image in the Rallio image gallery
- Rallio sends an AWS SQS message to a queue
- This service fetches message from queue
- The message is processed to see if the location and tags maps to albums in Chute
- Location mapping data is stored in
LocationMaps
database table - Tag mapping data is stored in
TagMaps
database table - A record is stored in
Requests
database table for each matching location and tag
- Location mapping data is stored in
- Image is uploaded to all mapped albums
- The
Requests
record is marked as completed (table columnrequest_success
set totrue
) if upload is successful - Incomplete
Requests
records will be retried - The SQS message is deleted from the queue when all
Requests
records are completed
- The
yarn --global add npx
brew install awscli
brew cask install docker
yarn db:create
yarn db:migrate
yarn db:seed:all
yarn sqs-local:dev:start
yarn sqs-local:dev:stop
yarn send-message MessageBody="Tacos are delicious."
yarn dev