Code Monkey home page Code Monkey logo

reaktor-pre-assignment-2022's Introduction

Reaktor Pre-Assignment 2022 - Rock Paper Scissors

Reaktor's pre-assignment 2022 was to create a Rock Paper Scissors website. The requirements were to show live games using the WebSocket API and enable to user to search for players. After searching, the user should see the number of games played, winrate and most played hand.

Live Site

This project is live on Vercel here:

https://reaktor-pre-assignment-2022.vercel.app/

Technologies

Next.js
axios
CSS Modules

About

The website consist of two sections: Player search and Live games. The player search allows users to search for a player to show more stats. As there are a lot of games already in the database, the user can load more games via a button. The live games section handles websocket games to display ongoing games and after they are resolved, the results.

The live games section's player names are clickable to instantly search for that player.

Things I learned

  • The API layer in Next.js
  • Cursor based pagination and the difficulties when there are a lot of pages
  • Recursively calling a cursor based API up to a limit of results
  • Animating container height when child elements are added in React

Todo

  • Closing the player search
  • Making the focusable Live game players also work with the enter key (now only clickable)

reaktor-pre-assignment-2022's People

Contributors

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