{"id":16928098,"url":"https://github.com/yuzhanglong/yujudge","last_synced_at":"2025-06-10T23:35:09.873Z","repository":{"id":52171581,"uuid":"280407098","full_name":"yuzhanglong/YuJudge","owner":"yuzhanglong","description":"💡 An online judge system based on React \u0026 TypeScript, with complete secondary development documents","archived":false,"fork":false,"pushed_at":"2022-03-20T05:38:29.000Z","size":3127,"stargazers_count":26,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T13:46:01.337Z","etag":null,"topics":["antd","onlinejudge","react","typescript"],"latest_commit_sha":null,"homepage":"http://docs.yuzzl.top","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/yuzhanglong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-17T11:29:22.000Z","updated_at":"2024-11-26T15:24:34.000Z","dependencies_parsed_at":"2022-08-23T21:30:50.656Z","dependency_job_id":null,"html_url":"https://github.com/yuzhanglong/YuJudge","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzhanglong%2FYuJudge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzhanglong%2FYuJudge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzhanglong%2FYuJudge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuzhanglong%2FYuJudge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuzhanglong","download_url":"https://codeload.github.com/yuzhanglong/YuJudge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451874,"owners_count":21105959,"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","onlinejudge","react","typescript"],"created_at":"2024-10-13T20:35:52.816Z","updated_at":"2025-04-11T17:43:24.127Z","avatar_url":"https://github.com/yuzhanglong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"\"\u003e\n    \u003cimg src=\"http://cdn.yuzzl.top/logo-text.svg\" width=\"240px\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#快速上手\"\u003e快速上手\u003c/a\u003e\u0026nbsp;|\u0026nbsp;\u003ca href=\"#调试与部署\"\u003e调试与部署\u003c/a\u003e\u0026nbsp;|\u0026nbsp;\u003ca href=\"#版本日志\"\u003e版本日志\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://img.shields.io/github/package-json/v/yuzhanglong/YuJudge\"\u003e\u003cimg src=\"https://img.shields.io/github/package-json/v/yuzhanglong/YuJudge\" alt=\"package-json\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://img.shields.io/badge/react-16.13.1-blue?logo=react\"\u003e\u003cimg src=\"https://img.shields.io/badge/react-16.13.1-blue?logo=react\" alt=\"react\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://img.shields.io/badge/typescript-3.7.2-blue?logo=typescript\"\u003e\u003cimg src=\"https://img.shields.io/badge/typescript-3.7.2-blue?logo=typescript\" alt=\"typescript\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e\u003c/h2\u003e\n\n### 快速上手\n\n[点击访问](https://yu-judge.vercel.app/)\n\n### 在线DEMO\n\n[测试网站](http://oj.yuzzl.top/)\n[CodeSandbox(可修改代码实时预览)](https://codesandbox.io/s/adoring-blackburn-ru7kr)\n\n### 调试与部署\n\n项目打包基于**webpack**，当前分支已经运行了`yarn eject`，webpack配置需要开发者自行管理。\n\nwebpack配置文件位于`config/webpack`目录之下。\n\nyarn脚本文件位于`script`目录之下。\n\n### 安装\n```shell\nyarn install\n```\n\n### 安装无法运行可以尝试（node-sass安装的问题）\n```\nnpm install -g mirror-config-china --registry=http://registry.npm.taobao.org\nyarn install\n```\n\n### 开发环境运行\n\n```shell\nyarn start\n```\n\n### 生产环境打包\n\n```shell\nyarn build\n```\n\n### 带外链的生产环境打包\n\n打开`package.json`，修改 **buildWithPrefix**\n\n```json {5}\n\"scripts\": {\n    \"start\": \"node scripts/start.js\",\n    \"build\": \"node scripts/build.js\",\n    \"test\": \"node scripts/test.js\",\n    \"buildWithPrefix\": \"node scripts/build.js http://cdn.yuzzl.top(你的外链地址)\",\n    \"upload\": \"node scripts/upload.js\"\n}\n```\n\n执行\n\n```shell\nyarn buildWithPrefix\n```\n\n此时打包出来的所有js、css、图片(public文件夹内的静态文件除外)等依赖，均指向你的**外链地址**而不是`build`文件夹的根目录。\n\n### 集成七牛存储服务\n\n如果你使用七牛的云存储服务来保存静态文件的话，你可以试试: \n\n打开`script/upload.js`, 找到下面内容，按照注释进行修改\n\n```javascript\n// 上传凭证以及配置\nconst ACCESS_KEY = 'o4fgM7P2lPEyo3已经作废FZ7s_NGdo_xJVNDdKf55apCubX';\nconst SECRET_KEY = 'YxRkcS8o-GSLMo1已经作废ajWuLjeFxFsMo1WKnOvyrLjB8';\n// bucket\nconst options = {\n  scope: \"yzlyz已经作废l123\",\n};\n// 空间对应的机房\nconfig.zone = uploader.zone.Zone_z2;\n```\n\n带外链打包\n\n```shell\nyarn buildWithPrefix\n```\n\n执行上传脚本\n\n```shell\nyarn upload\n```\n所有css、js等静态文件会被**自动上传至七牛服务器**，你只需要将**index.html**、一些图标文件传上服务器进行托管即可。\n\n\n### 它是如何工作的？\n\n请参考[这篇文章](https://www.zhihu.com/question/20343652/answer/1327243865)\n\n\n### 另请参阅\n\n服务端：https://github.com/yuzhanglong/YuJudge-JudgeServer\n\n判题机：https://github.com/yuzhanglong/YuJudge-JudgeHost\n\n判题核心：https://github.com/yuzhanglong/YuJudge-Core\n\n### 版本日志\n\n最新版本 `1.0.0`\n\n#### 1.0.0\n\n发布前后端项目至GitHub\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuzhanglong%2Fyujudge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuzhanglong%2Fyujudge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuzhanglong%2Fyujudge/lists"}