Giter Site home page Giter Site logo

package_tracking_service's Introduction

README

This app reads the tracking status of packages and shares it in a rabbitmq queue for other app's consumption. Now is doing the tracking search against FedEx API.

  • Ruby version 2.7.1

  • Rails 6 api-only

  • System dependencies: A rabbitmq message broker is needed. Can you use the cloudamqp.com freetier.

  • Configuration: You need to set an .env file, rename the .envexample and change the connection information to you rabbitmq server: CLOUDAMQP_URL="amqps://user:password@host/user"

  • Database creation: Typical rails db:create and rails db:seed for load test data.

  • How to run the test suite: bundle exec rspec

  • Services: You can use the free tier of cloudamqp.com and avoid local rabbitmq instalation.

  • How it works: Controller -> For now, the controller commands the search and update of tracking numbers, you can call the update of tracking information in this way: <URL_BASE>/packages/149331877648230/track. You can use the track numbers in the seed file for testing purposes. The information needs to be preloaded for now. Job -> Execute the search in the API of the transportation provider. It does a retry on timeout cases. You can extend the Job Class and implement other provider integrations. Publisher(event) -> Commands the interaction with rabbitmq. Puts the messages in the queue for later consumption.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.