An open API service indexing awesome lists of open source software.

https://github.com/pintu544/frontendauthsocket

Real-time dashboard application where admins can manage players and monitor their activity, while players can engage by clicking a “Banana” button and track their ranking in real-time.
https://github.com/pintu544/frontendauthsocket

localstorage react react-router-dom react-toastify socket-io

Last synced: 3 months ago
JSON representation

Real-time dashboard application where admins can manage players and monitor their activity, while players can engage by clicking a “Banana” button and track their ranking in real-time.

Awesome Lists containing this project

README

        





Fruits Click Game Dashboard - Frontend


This is the frontend portion of the Fruits Click Game Dashboard, a real-time dashboard application where players can engage in a “Banana Click” game and track their ranking in real-time. Admins can manage players and monitor player activity.


Features




  1. User Authentication: Login and registration with JWT-based authentication.


  2. Admin Dashboard:

    • User management (create, edit, delete players).

    • Blocking and unblocking users.

    • Viewing active users with real-time updates on banana click counts.




  3. Player Dashboard:

    • Banana click button to increase count.

    • Real-time click count updates.

    • Rank page with real-time ranking of players based on click counts.




  4. Real-Time Updates: Integrated Socket.io to ensure click counts and rankings update live.


Tech Stack




  • React - Frontend framework


  • Socket.io - Real-time communication


  • JWT - Authentication and authorization


  • CSS - Styling


Setup and Installation


Clone the Repository


bash


`git clone https://github.com/pintu544/FrontendAuthSocket.git

cd FrontendAuthSocket`

Install Dependencies


bash




`npm install`

Environment Variables


Create a .env file in the project root and configure the following environment variables:




`REACT_APP_BACKEND_URL=http://your-backend-url
REACT_APP_SOCKET_URL=http://your-socket-url`

Running the Application


To start the development server, run:


bash




`npm run dev`

The frontend should be running at http://localhost:5173.


Live Demo


The live frontend demo is available here.


Project Structure


FrontendAuthSocket/ ├── public/ # Public assets ├── src/ │ ├── assets/ │ ├── pages/ # Page components (register,login,Admin Dashboard, Player Dashboard) │ ├── services/ # API services and utilities │ ├── context/ # Socket.io client configuration ├── styles/ # css files │ └── App.js # Main app component └── package.json