{"id":18675091,"url":"https://github.com/afzl210/exploding-kittens","last_synced_at":"2026-07-09T22:31:24.083Z","repository":{"id":257136410,"uuid":"857085805","full_name":"AFZL210/exploding-kittens","owner":"AFZL210","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-11T10:29:34.000Z","size":4940,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T20:29:51.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://exploding-kittens-lk2h.onrender.com/","language":"TypeScript","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/AFZL210.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-09-13T19:17:20.000Z","updated_at":"2024-10-11T10:29:38.000Z","dependencies_parsed_at":"2024-11-07T09:23:57.616Z","dependency_job_id":null,"html_url":"https://github.com/AFZL210/exploding-kittens","commit_stats":null,"previous_names":["afzl210/exploding-kittens"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFZL210%2Fexploding-kittens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFZL210%2Fexploding-kittens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFZL210%2Fexploding-kittens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFZL210%2Fexploding-kittens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AFZL210","download_url":"https://codeload.github.com/AFZL210/exploding-kittens/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239520111,"owners_count":19652629,"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":[],"created_at":"2024-11-07T09:22:41.096Z","updated_at":"2025-10-24T18:32:31.037Z","avatar_url":"https://github.com/AFZL210.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Exploading Kittens\n\nA luck based card game.\n\n### DEMO VIDEO\n\n[![Watch the video](https://img.youtube.com/vi/iBNB24ZarnM/0.jpg)](https://youtu.be/iBNB24ZarnM)\n\n\n## Installation\n\n### Clone the Project\n```bash\ngit clone https://github.com/AFZL210/exploding-kittens.git\n```\n\n### Setting Up Client/Frontend\n1. Navigate to the `exploding-kittens/client` folder:\n   ```bash\n   cd exploding-kittens/client\n   ```\n\n2. Install the dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Start the development server:\n   ```bash\n   npm run dev\n   ```\n\n### Setting Up Backend\n\n**NOTE**: Make sure you have Go and Redis installed, and Redis is running either locally or on a remote server.\n\n1. Navigate to the `exploding-kittens/server` folder:\n   ```bash\n   cd exploding-kittens/server\n   ```\n\n2. Install Go modules:\n   ```bash\n   go mod tidy\n   ```\n\n3. Update Redis configuration in `main.go`:\n\n   - If Redis is running **locally**, update the configuration as follows:\n     ```go\n     redisClient := redis.NewClient(\u0026redis.Options{\n         Addr: \"localhost:6379\",\n     })\n     ```\n\n   - If Redis is running on a **remote server**, configure it like this:\n     ```go\n     redisClient = redis.NewClient(\u0026redis.Options{\n         Addr:     \"host:port\",\n         Username: \"Username\",\n         Password: \"Password\",\n         TLSConfig: \u0026tls.Config{\n             MinVersion: tls.VersionTLS12,\n         },\n     })\n     ```\n\n4. Run the server:\n   ```bash\n   go run main.go\n   ```\n\nNo go to ```http://localhost:5173/``` to play the game!\n## API Reference\n\n#### Register user\n\n```http\n  GET /api/register\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `username`      | `string` | **Required**. username |\n| `password`      | `string` | **Required**. password for username |\n\n\n\n#### Login user\n\n```http\n  GET /api/login\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `username`      | `string` | **Required**. username |\n| `password`      | `string` | **Required**. password for username |\n\n### Get User's Cards\n\n```http\n  GET /api/getcards?username={$Username}\n```\n\n### Shuffle/Reset usersgame\n\n```http\n  GET /api/shuffle?username={$Username}\n```\n\n#### Play Move/Draw a card\n\n```http\n  GET /api/play?username={$Username}\n```\n\n| Parameter | Type     | Description                       |\n| :-------- | :------- | :-------------------------------- |\n| `index`      | `string` | **Required**. index of card to be drawn |\n\n### Get Leaderboard\n\n```http\n  GET /api/leaderboard\n```\n\n\n\n### Get User's Rank\n\n```http\n  GET /api/user-rank?username={$Username}\n```\n\n\n\n## Features\n\n- User game create an account and play game as per given rules\n- Show leaderboard to users\n- Used Redux for state management\n- User can login/register with username and password\n- Used JWT for auth\n\n\n\n\n## Bonus Features\n\n- Automatically save the game for a user at every stage so the user can continue from where he left off last time.\n- Real-time update of points on the leaderboard for all the users if they are playing simultaneously. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafzl210%2Fexploding-kittens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafzl210%2Fexploding-kittens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafzl210%2Fexploding-kittens/lists"}