{"id":20951312,"url":"https://github.com/rewhile/NextChess","last_synced_at":"2025-08-24T07:32:28.576Z","repository":{"id":194689108,"uuid":"690980245","full_name":"nullchilly/NextChess","owner":"nullchilly","description":"Online chess built with nextjs and fastapi","archived":false,"fork":false,"pushed_at":"2024-01-08T17:26:01.000Z","size":308061,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-15T09:34:16.387Z","etag":null,"topics":["antd","chess","fastapi","game","javascript","multiplayer","next-js","nextjs","react","socket","socket-io","sql","tailwind-css","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","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/nullchilly.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}},"created_at":"2023-09-13T09:09:19.000Z","updated_at":"2024-05-11T23:16:09.000Z","dependencies_parsed_at":"2023-12-31T10:23:30.418Z","dependency_job_id":"f15a5561-91ac-4991-ba09-8594ef88ad6e","html_url":"https://github.com/nullchilly/NextChess","commit_stats":null,"previous_names":["nullchilly/web101","nullchilly/nextchess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullchilly%2FNextChess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullchilly%2FNextChess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullchilly%2FNextChess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullchilly%2FNextChess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullchilly","download_url":"https://codeload.github.com/nullchilly/NextChess/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230785812,"owners_count":18279934,"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":["antd","chess","fastapi","game","javascript","multiplayer","next-js","nextjs","react","socket","socket-io","sql","tailwind-css","tailwindcss","typescript"],"created_at":"2024-11-19T00:58:17.490Z","updated_at":"2025-08-24T07:32:22.797Z","avatar_url":"https://github.com/nullchilly.png","language":"TypeScript","readme":"# Next Chess\n\nThis project was bootstrapped frontend with [React](https://www.typescriptlang.org/docs/handbook/react.html), backend with [Python](https://www.python.org/doc/) and database with SQL.\n\n![](demo/DUEL_PUZZLE.png)\n\n\u003e [!NOTE]\n\u003e For more previews see the [demo folder](./demo/)\n\n## Features/packages/framework included\n\n- [TypeScript](https://www.typescriptlang.org/) - Type checker.\n- [Ant Design](https://ant.design/components/overview/) - Build layout \u0026 components.\n- [Chess.js](https://github.com/jhlywa/chess.js) - Handle chess game.\n- [Nextjs](https://nextjs.org/) - Powerful React framework for seamless development.\n- [FastAPI](https://fastapi.tiangolo.com/) - High-performance web framework for building APIs with Python.\n- [Socket.io](https://socket.io/docs/v4/) - Real-time communication for dynamic and interactive features.\n- [Alembic]() - Database migrations for efficient management and version control.\n\n## Installation\n### Frontend\nUse the package manager [npm](https://www.npmjs.com/) to install NextChess.\n```\nnpm install\n```\nRun the app frontend in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\n```\nnpm run next-dev\n```\n### Backend\nRun the app backend in the development mode. Listen at port [http://localhost:8000](http://localhost:8000).\n\n```\nnpm run fastapi-dev\n```\n### Database\n* Every alembic script is located at `alembic/versions` folder.\n\n* Edit alembic script by SQL\n\n* Run to update database\n\n```\nnpm run update-db\n```\n\n## Configuration\n\n### Environment variables\n\n- To customize environment variables, override values at `src/.env` (create this file if it doesn't exist).\n\n## Run and Deploy\n\u003e [!IMPORTANT]\n\u003e `cd web; npm run start` to run the production server\n\u003e\n\u003e The service is available at http://fall2324w3g9.int3306.freeddns.org/\n\n\u003e [!NOTE]\n\u003e `npm run dev` to run the development server\n\n## Folder structure\n\n### api\nDefine all api for application (eg: login, getUserById, getGame, findGame, ...).\n\n### alembic\nContains database migration scripts using Alembic for efficient management and version control.\n### src/app\nIndexing and organizing application-specific modules and components.\n\n### src/components\nYou can write components for application inside this folder. Each component should be self-contained as a module.\n\nExample:\n\n```\ncomponents\n├── Admin\n│   └── AdminPage.tsx\n│\n└── Icon\n    ├── BotIcon\n    │    ├── Cat.tsx\n    │    ├── Elephant.tsx\n    │    └── index.tsx\n    └── ChessPiece\n         ├── BlackKing.tsx\n         └── index.tsx\n```\n### src/helpers\n\nDefine all shared constants used in application\n### src/types\n\nDefine all shared types used in application\n\n### src/context\n\nDefine all shared context and context provider used in application\n\n### src/hooks\n\nDefine all shared hook used in application\n\n## Thanks to\n\n- [chesskid.com](https://www.chesskid.com/) for UI inspiration\n- [lichess.org](https://lichess.org/) for being the best\n\n## Copyright\n\n2024 @ UET-VNU\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewhile%2FNextChess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frewhile%2FNextChess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewhile%2FNextChess/lists"}