Code Monkey home page Code Monkey logo

assignment-cats-dealer's Introduction

Cats Dealer

Hi, there!

You are going to create a simple service that allows finding the best cat with the best price for customer location.

There are cat shops that have pricelists accessible via REST API. What your service will do is just get prices from each shop, compare them and suggest the best deal for a customer!

We created 2 fake test shops for you.

  1. "Cats Unlimited" API (JSON response) - https://nh7b1g9g23.execute-api.us-west-2.amazonaws.com/dev/cats/json
  2. "Happy Cats" API (XML response) - https://nh7b1g9g23.execute-api.us-west-2.amazonaws.com/dev/cats/xml

As of now, service only supports "Cats Unlimited" integration. On top of that, existing code was written by Trainee Ruby developer and could use some refactoring.

The task is the following:

  1. Implement "XML" integration, and improve business logic to find the best deal amongst two shops.
  2. Make service an API-only. Let's remove FE implementation.
  3. Refactor or rewrite the existing code. We wanna see a clean design, readable code, good test coverage.

Things to watch out for:

  • Right now our product supports only two cat shops. However, that can change in a future.
  • As you know, 3rd-party integrations often behave unpredictably. Let's make sure that our product can handle errors from these services.

Good luck and looking forward to seeing a finished project.

assignment-cats-dealer's People

Contributors

volodymyr-mykhailyk avatar dependabot[bot] avatar onokos avatar antonmi avatar

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.