Coder Social home page Coder Social logo

edge-and-node-challenge's Introduction

Product Engineering Interview Challenge

This is a Next.js React app interview challenge for the Edge & Node's Product Engineering team.

Create a private repo based on this one and add the interviewers as collaborators (IainM22, hasparus, cmwhited, dnfodjo, nasmr).
You can also email us a git bundle of your repo history if you prefer.

We recommend spending no more than 4 hours on this challenge. If you don't finish, that's ok.

Use any GraphQL client and styling solution you're comfortable with. The focus of this is more on general programming and problem-solving than on specific technologies.

The task

In this exercise, you will create an Epochs table that has sorting, search and/or pagination. Data will be available at the endpoint provided in the .env file.

First off, watch the video to see what the end result should look like.

Designs can be found here. Use the "Inspect" mode in Invision to get the styles. Here is the Sketch file. All the assets can be found here.

  1. You can find the subgraph here and use the playground to see the schema and make queries: https://thegraph.com/explorer/subgraph/graphprotocol/graph-network-mainnet.
  2. For this challenge, we will query the Entity called Epoch.
  3. After you get all of the epochs (or some of them, if you use pagination), render them in a table with the columns as in Designs.
  4. All columns should be sortable in asc/desc order. Default order should be by Epoch's startBlock. Make use of GraphQL queries.
  5. Search should only be implemented for Epoch's startBlock. Make sure to use a GraphQL query.
  6. As a bonus, there are a few animations/transitions (check the video).
  7. Another bonus, the table should be horizontally scrollable on narrow screens.

Setup and development

  1. Clone this repository.
  2. Run pnpm install to install all dependencies. If you don't have PNPM you can install it using Node.js Corepack.
  3. Run pnpm dev to run the development server.
  4. Open http://localhost:3000 in your browser.

edge-and-node-challenge's People

Contributors

hasparus avatar lakshay35 avatar nenadjaja avatar iainm22 avatar

Watchers

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