Code Monkey home page Code Monkey logo

websocket-yolo's Introduction

Goal

  • Your goal is to create a website like the one in the video fe-test-task.mov
  • The site must consume data from WebSocket and display it in a table.
  • It must display the top 10 users, sorted by score, highest to lowest. If there are already at least 10 rows, and a new entry arrives from WebSocket, but it has a lower score than the existing top 10, then it should be ignored and not added to the list.
  • The number of displayed results can be configured in Settings tab. By default it's 10.
  • Each row has a delete button, clicking that will remove the row.

Emitter

  • The backend service that emits the random data already exists and can be used as is.
  • To start it, you need to have Node.js installed, change directory to "emitter" and, run "npm i" and "npm start".
  • It will start a Socket.io server on ws://localhost:3050

Requirements

  • Use React with hooks, TypeScript, WebSocket. Any other technologies are optional.
  • You don't need to persist any data.
  • The example in video uses Material UI.
  • Your solution should include the same visual elements as in video, but the design doesn't have to be an exact match.
  • Push your code to GitHub and share it with your hiring contact.

npx prettier --write . npx prettier . --check

websocket-yolo's People

Contributors

mora2297 avatar

Watchers

 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.