Update ReadMe
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- mysql, python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Trước tiên, hãy đọc README.md cùng với requirements.txt, app/dbConfig.yaml, app/models/models.py, create_db.py và app.py để đối chiếu các bước thiết lập được đề xuất với dự án. Viết lại các yêu cầu trước khi cài đặt và hướng dẫn thiết lập cho macOS và Windows, bao gồm Python 3.11, MySQL, khởi tạo cơ sở dữ liệu và chạy ứng dụng. Công việc hoàn tất khi người mới đóng góp có thể làm theo README để chạy ứng dụng trên một trong hai hệ điều hành và các nội dung tham chiếu lỗi thời đã được xóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của BCStudentSoftwareDevTeam/cas
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
BCStudentSoftwareDevTeam/cas#443 ·
-
Error pages direct user to contact system support, without providing contact information.Có thể đã có người làm @baobao1355 đã nhận 4 ngày trước. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
BCStudentSoftwareDevTeam/cas#439 · 1 người được giao ·
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
BCStudentSoftwareDevTeam/cas#438 ·
-
Locked term noticeCó thể đã có người làm @bakobagassas đã nhận 4 ngày trước. Đang mở
BCStudentSoftwareDevTeam/cas#441 · 1 người được giao ·
-
Footer overlap after JS interactionCó thể đã có người làm @NYABUTOA đã nhận 4 ngày trước. Đang mởgood first issue
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
BCStudentSoftwareDevTeam/cas#440 · 1 bình luận · 1 người được giao ·
Tất cả issue của BCStudentSoftwareDevTeam/cas
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CloudredirectĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NanmiCoder/dsh-agent-teams#277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positivesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
githubnext/gh-aw-workshop#4943 ·
Maintainer thường phản hồi trong vòng 1 ngày