Coder Social home page Coder Social logo

kiritosan / campus-community-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yusixian/campus-community-backend

0.0 0.0 0.0 2.73 MB

使用koa搭建的校园社区后端 巧妇难为无米之炊!一个厉害的项目的后端! gitee地址:https://gitee.com/KamenRider41/campus-community-backend 前端地址:https://gitee.com/honxinn/campus-sns-campus-community

Home Page: https://gitee.com/KamenRider41/campus-community-backend

Shell 0.01% JavaScript 11.01% CSS 0.05% HTML 88.93%

campus-community-backend's Introduction

项目说明

  • 本项目是百度晋级班第一题:校园社区的后端项目

  • 本项目基于koa框架,使用Sequelize进行数据库的管理

使用必备

文档都在项目中!!!包括了以下文档

  • 本项目的接口文档
  • 本项目的开发文档
  • 本项目的bug回忆录
  • 本项目的开发记录文档

使用说明

初始化

# 下载所需依赖
npm install

数据库的相关配置

  • 1.在本地打开数据库(一般都是默认打开的mysql) 如果没有打开使用cmd命令net start mysql就可以了
  • 2.登录数据库后建立一个数据库,比如名字叫schoolcommunity 当然你可以用navicat来创建,会简单不少
  • 3.在本项目的.env文件中更新mysql的相关配置
  • 4.使用命令npm run createModel来创建所有的数据表

本地运行

创建完数据库后

npm install
npm run dev

功能说明

  • 功能实现

    • 数据统计

      • 获取社区十大热帖
      • 获取社区十大红人
      • 近7日文章增长量等统计
    • 用户管理 user

      • 上传头像
      • 修改用户信息
    • 文章管理 article

      • 添加文章
      • 删除/屏蔽文章
      • 获取文章总数
      • 恢复被删除/屏蔽文章
    • 评论管理 comment

      • 回复文章
      • 回复评论
    • 分区管理 partition

      • 添加分区
      • 删除分区
      • 自定义分区图标
    • 系统管理

      • 在线用户
      • 操作日志
    • 用户的注册及登录

      • 用户信息修改等
    • 普通用户功能

      • 发帖 (新发布帖子待管理员审核通过后方可发布)
      • 编辑
      • 删除自己的帖子
    • 管理员功能

      • 帖子修改、删除功能
      • 屏蔽、恢复功能
      • 帖子审核功能
    • 可选功能

      • 支持模糊搜索、搜索关键字联想
      • 支持点赞
      • 支持收藏
      • 支持发图片

campus-community-backend's People

Contributors

chen-lihao avatar kamenrider41 avatar yusixian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.