- I updated
socket.io
version on the backend because I had a few issues with the backend service with the old version ofsocket.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 whensendNumber
is triggered by the other player. - Not emitting
randomNumber
by CPU player when the last result is 1
> git clone git@github.com:kayali1411/JET-frontend-challenge.git
> cd JET-frontend-challenge
- Rename
.env.example
to.env
- Run
docker-compose up --build
- 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
- Run
npm run test
- To get the coverage report run
npm run test:coverage
This project uses vite as build tool and development server.
- TypeScript
- React
react-router-dom
for app routingtailwindcss
for UI stylingsocket.io-client
for socket communicatoinreact-redux
and@redux/toolkit
for state management@testing-library/react
andvitest
for unit testing