Update ReadMe
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- mysql, python
调研方向
先阅读 README.md,以及 requirements.txt、app/dbConfig.yaml、app/models/models.py、create_db.py 和 app.py,核对提议的设置步骤是否符合项目。重写 macOS 和 Windows 的前置条件与设置说明,包括 Python 3.11、MySQL、数据库初始化和运行应用。完成标准是新贡献者能够按照 README 在任一操作系统上启动应用,并且过时的引用已被移除。
由索引模型根据 Issue 内容生成。
描述
The current README.md is significantly outdated and references legacy tools, EOL software versions, and deprecated cloud environments (such as Python 2.7). New contributors cannot successfully set up the project using the existing documentation.
Currently fails to run source setup.sh and create_db.py.
Proposed Action Items
- Rewrite Prerequisites:
- Update required Python version to Python 3.10+
- Modernize Installation & Setup:
- Update dependency installation steps (e.g.,
pip install -r requirements.txt). - Clarify database initialization (
create_db.py).
- Update dependency installation steps (e.g.,
Additional details
The README needs to work for both macOS and Windows contributors.
What is wrong with the current README
- Says Python 2.7 is required. The app is Python 3.
- Tells people to clone from Bitbucket and mentions Cloud9. The repo is on GitHub.
- Says to run
source setup.sh. It also creates the venv with whateverpython3is newest on the machine. - Never mentions that MySQL is required. The app connects to a MySQL database (see
app/dbConfig.yamlandapp/models/models.py). - Says to use
https://to open the app.app.pydoes not set up SSL, so it ishttp://localhost:8080. - Refers to files and folders that no longer match the repo (for example the "File Hierarchy" section).
Known setup problems to document
- Python version: On Python 3.14,
pip install -r requirements.txtfails while buildinggreenlet==1.1.0. The pinned packages inrequirements.txtare from 2021, so the README should name a specific supported version (for example 3.11) rather than "3.10+" and warn against newer ones. Better still, update thegreenletpin inrequirements.txtso the install works on newer Python. - MySQL setup: The app expects a database
casand a usercas_userwith the passwordpassword(fromapp/dbConfig.yaml). The README should give the SQL to create them:CREATE DATABASE IF NOT EXISTS cas; CREATE USER IF NOT EXISTS 'cas_user'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON cas.* TO 'cas_user'@'localhost';
What the new README should contain
- Prerequisites: Git, Python 3.11, MySQL (with a note on how to check the MySQL server is running on each OS).
- Get the code:
git clone https://github.com/BCStudentSoftwareDevTeam/cas.git - Create the virtual environment and install packages, with separate commands for each OS:
- macOS:
python3.11 -m venv venvthensource venv/bin/activate - Windows (PowerShell):
py -3.11 -m venv venvthenvenv\Scripts\Activate.ps1
- macOS:
- Create the MySQL database and user (the SQL above).
- Create the tables and sample data:
mkdir datathenpython create_db.py. - Run the app:
python app.py, then openhttp://localhost:8080. - Returning later: activate the venv and run
python app.py. - Troubleshooting, for example:
- "Can't connect to MySQL server": the MySQL service is not running or is on a different port.
- "Access denied for user 'cas_user'": redo the database user step.
- pip fails building a package: check
python --versionis the supported version. - "Address already in use": another program is using port 8080.
Acceptance criteria
- Someone with a fresh macOS or Windows machine can go from clone to a running app using only the README.
- The README no longer mentions Python 2.7, Bitbucket or Cloud9.
setup.shis either removed from the instructions or replaced by steps that work on Windows.
- 主要语言
- JavaScript
- 星标
- 0
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BCStudentSoftwareDevTeam/cas 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
BCStudentSoftwareDevTeam/cas#443 ·
-
Error pages direct user to contact system support, without providing contact information.可能已有人在做 @baobao1355 于 4 天前认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 72/100
BCStudentSoftwareDevTeam/cas#439 · 已指派 1 人 ·
-
good first issue
难度 2/5 1-3 小时 新手友好度 70/100
BCStudentSoftwareDevTeam/cas#438 ·
-
Locked term notice可能已有人在做 @bakobagassas 于 4 天前认领。 未关闭
BCStudentSoftwareDevTeam/cas#441 · 已指派 1 人 ·
-
Footer overlap after JS interaction可能已有人在做 @NYABUTOA 于 4 天前认领。 未关闭good first issue
难度 3/5 半天 新手友好度 45/100
BCStudentSoftwareDevTeam/cas#440 · 1 条评论 · 已指派 1 人 ·
查看 BCStudentSoftwareDevTeam/cas 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
维护者通常 1 天内回复
-
Cloudredirect未关闭
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
NanmiCoder/dsh-agent-teams#277 ·
维护者通常 1 天内回复
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positives未关闭
难度 2/5 1-3 小时 新手友好度 78/100
githubnext/gh-aw-workshop#4943 ·
维护者通常 1 天内回复