GithubHelp home page GithubHelp logo

ssg's Introduction

Full-stack Take Home Exercise

Task

Create a simple web-app to lookup info for a text message.

The application should take a phone number and message string, and then send that data to a backend for analysis.

It should then display the following info:

  • The matched Country, Region, Operator, and Prefix
  • Message body with any urls highlighted and clickable
    ​ A sample dataset of country and operators prefixes is here for Canada, all numbers start with 1 ​ When matching a number to the prefix the application should select the record with the longest matching prefix from the supplied sample data set, for example ​ Given a phone number 14373293504 and a set of prefixes ​
    {"prefix": 1, "operator": "", "country_code": 1, "region": "", "country": "USA"},  
    {"prefix": 1, "operator": "", "country_code": 1, "region": "", "country": "Canada"},  
    {"prefix": 143, "operator": "", "country_code": 1, "region": "", "country": "Canada"},
    {"prefix": 1437, "operator": "", "country_code": 1, "region": "Ontario", "country": "Canada"},
    {"prefix": 1437329, "operator": "Lucky Mobile", "country_code": 1, "region": "Ontario", "country": "Canada"}
    {"prefix": 14372, "operator": "", "country_code": 1, "region": "Ontario", "country": "Canada"}
    
    ​ The application should select the record with prefix 1437329

User story

  • As a user I can input a phone number and message string into the app
  • I then see the country, region, operator and prefix of the phone number
  • If the message contained a URL, I can click a link in the message to open the site

Technical Requirements

  • React is prefered but not mandatory
  • We also like Typescript
  • Use any libraries
  • The backend should provide a single RESTful endpoint or GraphQL edge to analyse messages (we use Python & Golang, but feel free to implement in your preferred language)
  • Please write any tests you deem appropriate
  • Write a docker-compose.yml to run the application (we'll run docker-compose up)

Notes

We don't need you provide a totally polished submission, your time is valuable! if something isn't perfect or you need to reduce the scope for any reason you're welcome to just talk to us about how you would improve your solution given more time.

Submission

Please commit your application to this repo

ssg's People

Contributors

mmwc01 avatar

Watchers

 avatar

Forkers

hanwkim

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.