{"id":21184465,"url":"https://github.com/pintu544/backendauthsocket","last_synced_at":"2026-04-12T06:32:06.023Z","repository":{"id":261717571,"uuid":"884945176","full_name":"pintu544/BackendAuthSocket","owner":"pintu544","description":" 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. ","archived":false,"fork":false,"pushed_at":"2024-11-08T02:17:05.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T14:47:32.939Z","etag":null,"topics":["bcrypt","expressjs","jwt","mongodb","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"https://backendauthsocket.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pintu544.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-07T17:05:37.000Z","updated_at":"2024-11-08T02:17:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d18c111-ab32-4ee5-989f-325765186a8e","html_url":"https://github.com/pintu544/BackendAuthSocket","commit_stats":null,"previous_names":["pintu544/backendauthsocket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pintu544%2FBackendAuthSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pintu544%2FBackendAuthSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pintu544%2FBackendAuthSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pintu544%2FBackendAuthSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pintu544","download_url":"https://codeload.github.com/pintu544/BackendAuthSocket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243654399,"owners_count":20325892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bcrypt","expressjs","jwt","mongodb","nodejs","socket-io"],"created_at":"2024-11-20T18:08:58.927Z","updated_at":"2025-10-16T05:55:29.012Z","avatar_url":"https://github.com/pintu544.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\n\u003chead\u003e\n  \u003cmeta charset=\"utf-8\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n  \n  \u003clink rel=\"stylesheet\" href=\"https://stackedit.io/style.css\" /\u003e\n\u003c/head\u003e\n\n\u003cbody class=\"stackedit\"\u003e\n  \u003cdiv class=\"stackedit__html\"\u003e\u003ch1 id=\"fruits-click-game-dashboard---backend\"\u003eFruits Click Game Dashboard - Backend\u003c/h1\u003e\n\u003cp\u003eThis is the \u003cstrong\u003ebackend\u003c/strong\u003e portion of the Fruits Click Game Dashboard, handling user authentication, game data management, and real-time updates for the Fruits Click Game Dashboard application.\u003c/p\u003e\n\u003ch2 id=\"features\"\u003eFeatures\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003e\u003cstrong\u003eUser Management\u003c/strong\u003e:\n\u003cul\u003e\n\u003cli\u003eAdmins can create, edit, delete players.\u003c/li\u003e\n\u003cli\u003eBlocking/unblocking players to control login access.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eGame Data Management\u003c/strong\u003e:\n\u003cul\u003e\n\u003cli\u003eReal-time update of banana click counts.\u003c/li\u003e\n\u003cli\u003eEndpoints for managing player data and game stats.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eReal-Time Communication\u003c/strong\u003e:\n\u003cul\u003e\n\u003cli\u003eIntegrated \u003ca href=\"http://Socket.io\"\u003eSocket.io\u003c/a\u003e for real-time updates on click counts and user activity.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eJWT Authentication\u003c/strong\u003e:\n\u003cul\u003e\n\u003cli\u003eSecure login and user authentication using JSON Web Tokens.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"tech-stack\"\u003eTech Stack\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eNode.js\u003c/strong\u003e - Runtime environment\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eExpress\u003c/strong\u003e - Backend framework\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eMongoDB\u003c/strong\u003e - Database\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ca href=\"http://Socket.io\"\u003eSocket.io\u003c/a\u003e\u003c/strong\u003e - Real-time updates\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eJWT\u003c/strong\u003e - Authentication and authorization\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2 id=\"setup-and-installation\"\u003eSetup and Installation\u003c/h2\u003e\n\u003ch3 id=\"clone-the-repository\"\u003eClone the Repository\u003c/h3\u003e\n\u003cp\u003ebash\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e\n`git clone https://github.com/pintu544/BackendAuthSocket.git\ncd BackendAuthSocket` \n\u003c/code\u003e\u003c/pre\u003e\n\u003ch3 id=\"install-dependencies\"\u003eInstall Dependencies\u003c/h3\u003e\n\u003cp\u003ebash\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e\nnpm install\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch3 id=\"environment-variables\"\u003eEnvironment Variables\u003c/h3\u003e\n\u003cp\u003eCreate a \u003ccode\u003e.env\u003c/code\u003e file in the root directory and configure the following variables:\u003cbr\u003e\n\u003ccode\u003e`PORT=5000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret`\u003c/code\u003e\u003c/p\u003e\n\u003ch3 id=\"running-the-application\"\u003eRunning the Application\u003c/h3\u003e\n\u003cp\u003eTo start the server, run:\u003c/p\u003e\n\u003cp\u003ebash\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e\n`npm start` \n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThe backend should be running at \u003ccode\u003ehttp://localhost:5000\u003c/code\u003e.\u003c/p\u003e\n\u003ch3 id=\"live-demo\"\u003eLive Demo\u003c/h3\u003e\n\u003cp\u003eThe live backend demo is available \u003ca href=\"https://backendauthsocket.onrender.com\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"api-endpoints\"\u003eAPI Endpoints\u003c/h2\u003e\n\u003ch3 id=\"authentication-endpoints\"\u003eAuthentication Endpoints\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003ePOST\u003c/strong\u003e \u003ccode\u003e/api/v1/login\u003c/code\u003e - User login\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePOST\u003c/strong\u003e \u003ccode\u003e/api/v1/register\u003c/code\u003e - User registration\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eGET\u003c/strong\u003e \u003ccode\u003e/api/v1/dashboard\u003c/code\u003e - Dashboard (authentication required)\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch3 id=\"admin-endpoints\"\u003eAdmin Endpoints\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eGET\u003c/strong\u003e \u003ccode\u003e/api/v1/users\u003c/code\u003e - Get all users (admin authentication required)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePOST\u003c/strong\u003e \u003ccode\u003e/api/game/players\u003c/code\u003e - Create a player (admin authentication required)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePUT\u003c/strong\u003e \u003ccode\u003e/api/game/players/:id\u003c/code\u003e - Edit a player (admin authentication required)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eDELETE\u003c/strong\u003e \u003ccode\u003e/api/game/players/:id\u003c/code\u003e - Delete a player (admin authentication required)\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePOST\u003c/strong\u003e \u003ccode\u003e/api/game/block/:id\u003c/code\u003e - Block a player (admin authentication required)\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch3 id=\"game-endpoints\"\u003eGame Endpoints\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003ePOST\u003c/strong\u003e \u003ccode\u003e/api/game/click\u003c/code\u003e - Increment player’s “banana” click count\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2 id=\"project-structure\"\u003eProject Structure\u003c/h2\u003e\n\u003cp\u003ebash\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003e\nBackendAuthSocket/\n├── db/               # Configuration files (DB, JWT)\n├── controllers/          # Functions handling requests\n├── middleware/           # Middleware (auth and admin checks)\n├── models/               # Mongoose models (User, Game Data)\n├── routes/               # API routes\n├── sockets/              # Socket.io event handlers\n└── app.js             # Main server entry point\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\u003c/body\u003e\n\n\u003c/html\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpintu544%2Fbackendauthsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpintu544%2Fbackendauthsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpintu544%2Fbackendauthsocket/lists"}