Skip to content

Dev Test for mid to senior full stack React JS engineers

Notifications You must be signed in to change notification settings

tkhunkhe/full-stack-react-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.

About

Dev Test for mid to senior full stack React JS engineers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published