{"id":24516228,"url":"https://github.com/feightwywx/homework-mis","last_synced_at":"2026-04-11T00:45:03.628Z","repository":{"id":60484500,"uuid":"537393720","full_name":"feightwywx/homework-mis","owner":"feightwywx","description":"(more than a) homework management information system / （不仅是一个）作业管理信息系统","archived":false,"fork":false,"pushed_at":"2023-05-26T15:07:40.000Z","size":635,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T01:24:23.303Z","etag":null,"topics":["admin-dashboard","docker","information-system","mysql","nextjs","react"],"latest_commit_sha":null,"homepage":"https://mis.drwf.ink","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/feightwywx.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}},"created_at":"2022-09-16T09:37:35.000Z","updated_at":"2023-05-28T15:31:43.000Z","dependencies_parsed_at":"2023-01-20T14:18:55.401Z","dependency_job_id":null,"html_url":"https://github.com/feightwywx/homework-mis","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feightwywx%2Fhomework-mis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feightwywx%2Fhomework-mis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feightwywx%2Fhomework-mis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feightwywx%2Fhomework-mis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feightwywx","download_url":"https://codeload.github.com/feightwywx/homework-mis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719361,"owners_count":20336596,"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":["admin-dashboard","docker","information-system","mysql","nextjs","react"],"created_at":"2025-01-22T01:21:58.317Z","updated_at":"2025-12-31T00:21:55.718Z","avatar_url":"https://github.com/feightwywx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homework-mis\n\n一个基于[Next.js](https://nextjs.org)的作业管理信息系统。\n\n[Demo链接](https://mis.drwf.ink)\n\n[备用链接（Vercel）](https://homework-mis-tog4.vercel.app)\n\n||用户名|密码|\n|--|--|--|\n|学生端|student|123456|\n|教师端|teacher|123456|\n\n## 功能\n\n### 学生端\n\n#### 课程管理\n\n- 查看相关课程，及课程下的作业与考试\n- 统计课程成绩\n\n#### 作业管理\n\n- 查看被下发的作业列表，以及单项作业详情\n- 提交作业\n- 查看作业批阅情况、得分和评语\n\n#### 考试管理\n\n- 查看考试列表与详细信息\n- 查询分数\n\n### 教师端\n\n#### 课程管理\n\n- 查看相关课程，及课程下的作业与考试\n- 统计课程成绩\n\n#### 作业管理\n\n- 查看自己下发的所有作业，以及单项作业内容\n- 查看作业完成情况\n- 查看某个学生的作业完成内容，批阅作业\n- 打回作业\n\n#### 考试管理\n\n- 查看考试列表与详细信息\n- 发布考试\n- 提交分数\n\n\n## Get Started\n\n#### 1. 安装依赖\n```commandline\nnpm i\n```\n\n#### 2. 数据库准备\n本项目使用一个名为`homework_mis`的MySQL 8.0数据库。\n\n在调试之前，需要手动创建该数据库，并运行`sql/homework_mis.sql`来初始化表结构。\n\nJest测试同样调用这个数据库，但是可以通过`.env.test`指定不同的MySQL实例。\n\n#### 3. 环境变量\n\n本项目通过环境变量存储参数。你需要在项目根目录下创建一个`.env.local`文件，启动服务时Next.js会自动从中载入环境变量。`.env.local`的结构如下：\n\n```ini\nSECRET_COOKIE_PASSWORD=\nMYSQL_HOST=\nMYSQL_USER=\nMYSQL_PORT=  # 默认3306\nMYSQL_PASSWORD=\n```\n\n#### 4. 开始调试\n```commandline\nnpm run dev\n```\n\n## 通过Docker部署\n\n本项目提供了`linux/amd64`和`linux/amd64`的[Docker镜像](https://hub.docker.com/r/dotdirewolf/hwmis-docker)。\n\n以下命令将会拉取镜像，启动一个名为的`hwmis`的容器，并将容器内`3000`端口映射到随机端口。记得替换成你自己的环境变量。\n\n```commandline\ndocker pull dotdirewolf/hwmis-docker\ndocker run -itdP --name hwmis \\\n-e SECRET_COOKIE_PASSWORD= \\\n-e MYSQL_HOST= \\\n-e MYSQL_USER= \\\n-e MYSQL_PORT= \\\n-e MYSQL_PASSWORD= \\\ndotdirewolf/hwmis-docker\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeightwywx%2Fhomework-mis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeightwywx%2Fhomework-mis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeightwywx%2Fhomework-mis/lists"}