{"id":29019555,"url":"https://github.com/azurespheredev/werewolf","last_synced_at":"2026-04-11T00:02:46.096Z","repository":{"id":300791404,"uuid":"1007094872","full_name":"azurespheredev/Werewolf","owner":"azurespheredev","description":"Offline, LAN-based multiplayer \"Werewolf\" game created using Electron","archived":false,"fork":false,"pushed_at":"2025-06-23T16:51:40.000Z","size":715,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T16:59:20.371Z","etag":null,"topics":["electron","eslint","react","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azurespheredev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2025-06-23T13:04:20.000Z","updated_at":"2025-06-23T16:51:44.000Z","dependencies_parsed_at":"2025-06-23T17:11:18.376Z","dependency_job_id":null,"html_url":"https://github.com/azurespheredev/Werewolf","commit_stats":null,"previous_names":["azurespheredev/werewolf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/azurespheredev/Werewolf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azurespheredev%2FWerewolf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azurespheredev%2FWerewolf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azurespheredev%2FWerewolf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azurespheredev%2FWerewolf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azurespheredev","download_url":"https://codeload.github.com/azurespheredev/Werewolf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azurespheredev%2FWerewolf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261976821,"owners_count":23239207,"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":["electron","eslint","react","webpack"],"created_at":"2025-06-26T00:31:07.293Z","updated_at":"2025-12-30T22:23:50.191Z","avatar_url":"https://github.com/azurespheredev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Werewolf Game - Next.js Web Application\n\nMigrated from Electron desktop app to Next.js web application.\n\n## What Was Changed\n\n### ✅ Completed Migrations\n\n1. **Removed Welcome Page** - The app now starts directly at the home page (`/`)\n2. **Removed Quit Button** - No longer needed for web application\n3. **Updated Home Page** - Displays only \"Create Room\" and \"Join Room\" buttons\n4. **Migrated All Core Infrastructure**:\n   - Prisma database schema\n   - Redux store and state management\n   - API and Socket services\n   - All shared UI components\n   - Game styling and animations\n\n### 📝 Remaining Work\n\nTo complete the migration, you need to create these page files by copying from the Electron project:\n\n```bash\n# Create these files in werewolf/app/\napp/create-room/page.tsx    # From Electron/src/renderer/pages/CreateRoomPage.tsx\napp/join-room/page.tsx      # From Electron/src/renderer/pages/JoinRoomPage.tsx\napp/waiting-room/page.tsx   # From Electron/src/renderer/pages/WaitingRoomPage.tsx\napp/game/page.tsx           # From Electron/src/renderer/pages/GamePage.tsx\n```\n\n**Important**: When copying, make sure to:\n\n- Add `'use client';` at the top of each file\n- Change `import { useNavigate } from 'react-router-dom'` to `import { useRouter } from 'next/navigation'`\n- Change `navigate(RouteEnum.X)` to `router.push(RouteEnum.X)`\n- Remove any `window.electron` references\n\n## Installation\n\n```bash\ncd werewolf\nnpm install\n```\n\n## Database Setup\n\n```bash\n# Generate Prisma client\nnpm run db:generate\n\n# Run migrations\nnpm run db:migrate\n\n# (Optional) Open Prisma Studio\nnpm run db:studio\n```\n\n## Environment Variables\n\nCreate `.env.local`:\n\n```\nDATABASE_URL=\"postgresql://user:password@localhost:5432/werewolf\"\n```\n\n## Assets\n\nCopy these directories from `Electron/public/` to `werewolf/public/`:\n\n- `images/` (all subdirectories)\n- `sounds/` (optional)\n\n## Development\n\n```bash\nnpm run dev\n```\n\nVisit `http://localhost:3000`\n\n## Key Differences from Electron Version\n\n| Electron                       | Next.js                 |\n| ------------------------------ | ----------------------- |\n| Welcome page with server input | Starts at home page     |\n| Quit button in UI              | Users close browser tab |\n| `window.electron.ipcRenderer`  | Regular HTTP/WebSocket  |\n| Desktop only                   | Works on all devices    |\n| Routes start at `/welcome`     | Routes start at `/`     |\n\n## Next Steps\n\n1. Install dependencies: `npm install`\n2. Copy remaining page files as listed above\n3. Copy public assets (images)\n4. Setup database\n5. Test the application\n\nSee `MIGRATION_GUIDE.md` for complete details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazurespheredev%2Fwerewolf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazurespheredev%2Fwerewolf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazurespheredev%2Fwerewolf/lists"}