Skip to content

rallio/rallio-chute-service

Repository files navigation

Rallio Chute Service

Travis Build Status

Travis

development master production
Build Status Build Status Build Status

Description

This service provides local images to Chute for Pet Supplies Plus.

The workflow is

  1. Rallio Local strategist likes/approve an image in the Rallio image gallery
  2. Rallio sends an AWS SQS message to a queue
  3. This service fetches message from queue
  4. 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
  5. Image is uploaded to all mapped albums
    • The Requests record is marked as completed (table column request_success set to true) if upload is successful
    • Incomplete Requests records will be retried
    • The SQS message is deleted from the queue when all Requests records are completed

Development Setup

Dependencies

yarn --global add npx
brew install awscli
brew cask install docker

Set up Database

yarn db:create
yarn db:migrate
yarn db:seed:all

Start local SQS Queue

yarn sqs-local:dev:start

Stop local SQS Queue

yarn sqs-local:dev:stop

Send a message to the queue

yarn send-message MessageBody="Tacos are delicious."

Start local server

yarn dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •