{"id":20174998,"url":"https://github.com/yusixian/campus-community-backend","last_synced_at":"2025-04-10T03:46:33.460Z","repository":{"id":50640543,"uuid":"467352137","full_name":"yusixian/campus-community-backend","owner":"yusixian","description":"使用koa搭建的校园社区后端 巧妇难为无米之炊！一个厉害的项目的后端！ gitee地址：https://gitee.com/KamenRider41/campus-community-backend 前端地址：https://gitee.com/honxinn/campus-sns-campus-community","archived":false,"fork":false,"pushed_at":"2024-01-22T09:17:50.000Z","size":2786,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T05:04:01.845Z","etag":null,"topics":["javascript","koa","nodejs","sequelize","websocket"],"latest_commit_sha":null,"homepage":"https://gitee.com/KamenRider41/campus-community-backend","language":"HTML","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/yusixian.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-03-08T03:40:54.000Z","updated_at":"2024-05-22T03:14:39.000Z","dependencies_parsed_at":"2022-09-10T03:53:46.955Z","dependency_job_id":null,"html_url":"https://github.com/yusixian/campus-community-backend","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/yusixian%2Fcampus-community-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusixian%2Fcampus-community-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusixian%2Fcampus-community-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusixian%2Fcampus-community-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusixian","download_url":"https://codeload.github.com/yusixian/campus-community-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154986,"owners_count":21056542,"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":["javascript","koa","nodejs","sequelize","websocket"],"created_at":"2024-11-14T01:44:31.669Z","updated_at":"2025-04-10T03:46:33.231Z","avatar_url":"https://github.com/yusixian.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\r\n * @Author: 41\r\n * @Date: 2022-02-15 14:52:44\r\n * @LastEditors: cos\r\n * @LastEditTime: 2022-03-07 02:54:08\r\n * @Description: 项目说明、启动、功能介绍\r\n--\u003e\r\n- 使用koa搭建的校园社区后端 巧妇难为无米之炊！一个厉害的项目的后端！ \r\n- 前端地址：https://gitee.com/honxinn/campus-sns-campus-community\r\n- 后台管理地址：https://gitee.com/honxinn/back-manage\r\n- 接口文档地址：https://www.apifox.cn/apidoc/shared-9459ed60-58b2-45b8-b5a8-89a63d77357f/api-11836993\r\n\r\n# 项目说明\r\n- 本项目是百度晋级班第一题:校园社区的后端项目\r\n\r\n- 本项目基于koa框架，使用Sequelize进行数据库的管理\r\n\r\n### 使用必备\r\n文档都在项目中！！！包括了以下文档\r\n- 本项目的接口文档\r\n- 本项目的开发文档\r\n- 本项目的bug回忆录\r\n- 本项目的开发记录文档\r\n\r\n# 使用说明\r\n### 初始化\r\n```bash\r\n# 下载所需依赖\r\nnpm install\r\n```\r\n### 数据库的相关配置\r\n- 1.在本地打开数据库(一般都是默认打开的mysql)\r\n如果没有打开使用cmd命令`net start mysql`就可以了\r\n- 2.登录数据库后建立一个数据库,比如名字叫`schoolcommunity`\r\n当然你可以用`navicat`来创建,会简单不少\r\n- 3.在本项目的`.env`文件中更新mysql的相关配置\r\n- 4.使用命令`npm run createModel`来创建所有的数据表\r\n\r\n### 本地运行\r\n\r\n创建完数据库后\r\n```bash\r\nnpm install\r\nnpm run dev\r\n```\r\n\r\n\r\n\r\n# 功能说明\r\n- [x] 功能实现\r\n\r\n  - [x] 数据统计\r\n    - [x] 获取社区十大热帖\r\n    - [x] 获取社区十大红人\r\n    - [x] 近7日文章增长量等统计\r\n\r\n  - [x] 用户管理 user\r\n    - [x] 上传头像\r\n    - [x] 修改用户信息\r\n\r\n  - [x] 文章管理 article\r\n\r\n    - [x] 添加文章\r\n    - [x] 删除/屏蔽文章\r\n    - [x] 获取文章总数\r\n    - [x] 恢复被删除/屏蔽文章\r\n\r\n  - [x] 评论管理 comment \r\n    - [x] 回复文章\r\n    - [x] 回复评论\r\n\r\n  - [x] 分区管理 partition\r\n\r\n    - [x] 添加分区\r\n    - [x] 删除分区\r\n    - [x] 自定义分区图标\r\n\r\n  - [x] 系统管理\r\n\r\n    - [x] 在线用户\r\n    - [x] 操作日志\r\n    \r\n  - [x] 用户的注册及登录\r\n    - [x] 用户信息修改等\r\n  - [x] 普通用户功能\r\n    - [x] 发帖 (新发布帖子待管理员审核通过后方可发布)\r\n    - [x] 编辑\r\n    - [x] 删除自己的帖子\r\n  - [x] 管理员功能\r\n    - [x] 帖子修改、删除功能\r\n    - [x] 屏蔽、恢复功能\r\n    - [x] 帖子审核功能\r\n  - [ ] 可选功能\r\n    - [x] 支持模糊搜索、搜索关键字联想\r\n    - [x] 支持点赞\r\n    - [x] 支持收藏\r\n    - [x] 支持发图片","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusixian%2Fcampus-community-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusixian%2Fcampus-community-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusixian%2Fcampus-community-backend/lists"}