Skip to content

kayali1411/JET-frontend-challenge

Repository files navigation

Important Note

  • I updated socket.io version on the backend because I had a few issues with the backend service with the old version of socket.io
  • This is a clone for the backend service with the changes repo-link.
  • Fix connectivity issue with older socket.io version and changes for updated version compatibility
  • Emit activateYourTurn event to activate opponent turn when sendNumber is triggered by the other player.
  • Not emitting randomNumber by CPU player when the last result is 1

Installation and Commands

Clone The Project

> git clone git@github.com:kayali1411/JET-frontend-challenge.git
> cd JET-frontend-challenge

Docker Users

  • Rename .env.example to .env
  • Run docker-compose up --build

Non Docker Users

  • Prerequisites
    • nodejs (latest LTS version , >= 16.15.0)
  • Rename .env.example to .env
  • In the root folder of the project run npm install
  • Start the app using npm start

Unit Testing

  • Run npm run test
  • To get the coverage report run npm run test:coverage

Technical Description

This project uses vite as build tool and development server.

Major Dependencies

  • TypeScript
  • React
  • react-router-dom for app routing
  • tailwindcss for UI styling
  • socket.io-client for socket communicatoin
  • react-redux and @redux/toolkit for state management
  • @testing-library/react and vitest for unit testing

Application Demo

Screen.Recording.2023-10-17.at.07.47.38.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published