{"id":13655191,"url":"https://github.com/skyleaworlder/ProTJec","last_synced_at":"2025-04-23T10:32:14.588Z","repository":{"id":122580496,"uuid":"267862427","full_name":"skyleaworlder/ProTJec","owner":"skyleaworlder","description":":cry: 同济大学 数据库课设 TJU Database Curriculum Project","archived":true,"fork":false,"pushed_at":"2020-05-30T17:03:52.000Z","size":17794,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-10T06:34:32.210Z","etag":null,"topics":["back-end-web-development","flask","front-end-web-development","mysql","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/skyleaworlder.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-29T13:17:49.000Z","updated_at":"2024-11-05T15:22:46.000Z","dependencies_parsed_at":"2024-01-17T02:29:05.748Z","dependency_job_id":null,"html_url":"https://github.com/skyleaworlder/ProTJec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyleaworlder%2FProTJec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyleaworlder%2FProTJec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyleaworlder%2FProTJec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyleaworlder%2FProTJec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyleaworlder","download_url":"https://codeload.github.com/skyleaworlder/ProTJec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250416551,"owners_count":21427010,"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":["back-end-web-development","flask","front-end-web-development","mysql","vue"],"created_at":"2024-08-02T03:00:59.346Z","updated_at":"2025-04-23T10:32:09.575Z","avatar_url":"https://github.com/skyleaworlder.png","language":"Vue","funding_links":[],"categories":["目录"],"sub_categories":["数据库"],"readme":"# ProTJec\r\n\r\n本着 “凡是跟同济大学沾点关系的东西一定要把 ‘同’ 和 ‘济’ 两个字有机结合” 的大纲，这里将 `Project` 简单包装，变为 `ProTJec`，那么显然和项目有关了。\r\n\r\n\r\n\r\n本项目由 3 个文件夹组成。\r\n\r\n首先是 `prepare`。\r\n\r\n其中放入了一些杂项文件，比如：\r\n\r\n* **定义前后端接口** 的 `API.json`\r\n* **MySQL数据库脚本** `init_1_0.sql` 和 其 ANSI 编码版本 `ansi_1_0.sql`\r\n* **项目开发日志** `dev_note.md`\r\n* **数据库模型** `ProTJec.mwb` 及其副本 `ProTJec.mwb.bak`\r\n* **UI原型图** `设计原型图.bmpr`\r\n\r\n\r\n\r\n其次是 `front_end`。\r\n\r\n其中是前端项目。是从 `vue-element-admin` 直接搬过来的一些东西。\r\n\r\n值得注意的是其中还嵌套了一层，因为本来打算外面再放一些文件的，但是后来都转入了 `prepare` 中，于是再也没有改过。\r\n\r\n\r\n\r\n\u003cspan  style=\"color:red\"\u003e\u003cu\u003e对 `front_end` 文件夹中内容进行修改之前，必须在 git 上输入以下命令。\u003c/u\u003e\u003c/span\u003e\r\n\r\n```git\r\ngit config core.autocrlf false\r\n```\r\n\r\n自动生成的 `package.json` 默认为 LF，add 时会出问题。\r\n\r\n\r\n\r\n至于启动时，只需要\r\n\r\n```powershell\r\ncd /front_end/ProTJec_frontend\r\nnpm run dev\r\n```\r\n\r\n即可，没装 npm 的话，可能需要装一装。\r\n\r\n```net\r\nhttps://nodejs.org/en/download/\r\n```\r\n\r\n（估计用的是 Windows，这里下 `msi` 比较方便，其他操作系统的话，有其他更方便的方式）\r\n\r\n\r\n\r\n\r\n\r\n最后是 `back_end`。\r\n\r\n后端项目所在位置，同样嵌套了一层。\r\n\r\n没有使用多余的 `flask` 插件，基本纯手写，锻炼自己的 `SQL`（其实根本没有，因为涉及的查询太简单了\r\n\r\n\r\n\r\n启动的话\r\n\r\n```powershell\r\ncd /back_end/ProTJec_backend\r\nflask run\r\n```\r\n\r\n不需要配其他东西，在 `/back_end/ProTJec_backend/.flaskenv` 里面配过模式和默认端口。\r\n\r\n运行这个后端需要在 MySQL 中首先运行 `prepare` 里面的数据库脚本，加载数据库。\r\n\r\n```mysql\r\nmysql\u003e SOURCE ansi_1_0.sql;\r\nmysql\u003e show databases;\r\nmysql\u003e use protjec;\r\nmysql\u003e show tables;\r\nmysql\u003e desc users;\r\n```\r\n\r\n以检查数据库状态。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyleaworlder%2FProTJec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyleaworlder%2FProTJec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyleaworlder%2FProTJec/lists"}