Git Product home page Git Product logo

crossmint-challenge's Introduction

Crossmint Challenge

Install

yarn install

Run Scripts

  1. yarn populate-phase-1
  2. yarn populate-phase-2
  3. yarn delete-phase-1
  4. yarn delete-phase-2

Decisions made

  • I installed the axios-retry library to handle retries if any API call fails. In case of three consecutive failures, the error is logged, and the error is thrown. However, this could change depending on the business logic. For example, if an update or delete operation fails, it might not take any action and not throw the error upwards.

  • I chose to use a basic TypeScript project where scripts are run to populate and eliminate the different phases since there was no need to visualize the multiverses or generate a service or API. I believe this approach made the solution much neater, cleaner, and understandable regarding its purpose.

  • I added a delay to each API call to prevent it from failing due to the "Too Many Requests" error. This delay could be configured differently if more information about the API's call limit was available. For now, I set it to 1 second.

crossmint-challenge's People

Contributors

ignacio-87 avatar

Watchers

 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.