Giter VIP home page Giter VIP logo

backend-challenge-go's Introduction

RareCircles Coding Challenge

Requirements

Design an API endpoint that provides token information based on token title.

  • the endpoint is exposed at /tokens
  • the partial (or complete) token title is passed as a query string parameter q
  • the endpoint returns a JSON response with an array suggested matches
    • each suggestion has a name
    • each suggestion has a symbol
    • each suggestion has a address
    • each suggestion has a decimals
    • each suggestion has a total supply
  • at-least 2 go-test needs to be implemented
  • concurrency should be applied where appropriate
  • feel free to add more features if you like!

Notes

  • you have a list of tokens accounts defined inthe addresses.jsonl file that should be used as a seed to your application
  • we have included a eth lirbary that should help with any decoding and rpc calls

Sample responses

These responses are meant to provide guidance. The exact values can vary based on the data source and scoring algorithm.

Near match

GET /tokens?q=rare
{
  "tokesn": [
    {
      "name": "RareCircles",
      "symbol": "RCI",
      "address": "0xdbf1344a0ff21bc098eb9ad4eef7de0f9722c02b",
      "decimals": 18,
      "totalSupply": 1000000000,
    },
    {
      "name": "Rareible",
      "symbol": "RRI",
      "address": "e9c8934ebd00bf73b0e961d1ad0794fb22837206",
      "decimals": 9,
      "totalSupply": 100,
    },
  ]
}

No match

GET /tokens?q=ThereIsNoTokenHere
{
  "tokens": []
}

Non-functional

  • All code should be written in Goland, Typescript or PHP.
  • Mitigations to handle high levels of traffic should be implemented.
  • Challenge is submitted as pull request against this repo (fork it and create a pull request).
  • Documentation and maintainability is a plus.

Dataset

You can find the necessary dataset along with its description and documentation in the data directory.

Evaluation

We will use the following criteria to evaluate your solution:

  • Capacity to follow instructions
  • Developer Experience (how easy it is to run your solution locally, how clear your documentation is, etc)
  • Solution correctness
  • Performance
  • Tests (quality and coverage)
  • Attention to detail
  • Ability to make sensible assumptions

It is ok to ask us questions!

We know that the time for this project is limited and it is hard to create a "perfect" solution, so we will consider that along with your experience when evaluating the submission.

Getting Started

Prerequisites

You are going to need:

  • Git
  • go

Starting the application

To start a local server run:

go run ./cmd/challenger

backend-challenge-go's People

Contributors

jubeless 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.