Git Product home page Git Product logo

full-stack-react-test's Introduction

Chainstarters Full Stack JS Test

Dev Test for mid to senior full stack React JS engineers

Context

A game requires users to travel to a checkpoint in their city to claim a token.

A checkpoint is usually a public park or famous building.

For some users, depending on where they live, the checkpoint might be far away from their home, or close-by. We want to be fair and give rewards to users based on how far they had to travel in order to complete the game.

Need

We need to estimate the total distance traveled. Assume they will go from home to the checkpoint and back home again.

We need our database to give each user an integral ranking between 1-10 based on how far they must travel compared to the shortest and longest travel distance.

We need to show each user how far each checkpoint is from where they are.

Assume the application will have this data already:

  • The latitude, longitude for each checkpoint.
  • The latitude, longitude for the user at any moment.
  • The home address of the user.

Create your own test data as needed. You may access 3rd party API's if you deem necessary.

Implementation

  1. Design a database model (Express, Prisma, or similar) that can store users, checkpoints, and distances. Note: users will play many other games like this over time.
  2. Write the logic for estimating total distance and sorting users based on this distance for the game.
  3. Serve a single webpage dashboard using React that shows the users and rankings
  4. Bonus: Create an app screen using React Native that shows a user the location of a checkpoint and how far away it is from them.

Deliverable

  1. Assuming you have a Node, React, React Native environment already setup on your computer, this project is estimated to take 3-5 hours.
  2. Fork this repository, add your source code, then share a link to your repository.
  3. Run everything locally and save screenshots of webpage and app screen in /screenshots directory.
  4. Actual hosting or app build is not necessary. It's ok if it only runs locally.

Grading

  1. Your code will be inspected for readability and quality.
  2. Your choices in database, API logic, interfaces will be judged compared to best practices.
  3. Demonstrate you can implement only basic UI elements. (We have a designer on the team that will provide designs.) We are NOT judging UI design.
  4. If you pass on the React Native app screen, we will judge a RESTful API endpoint that serves same purpose.

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.