Skip to content

校园小程序论坛 接口 可以配合leyue小程序使用 该接口使用使用nodejs编写

Notifications You must be signed in to change notification settings

hbbc123/leyue_nodejs

Repository files navigation

校园论坛小程序接口

后端基于nodejs 由于编写时后端没有写接口文档 导致该项目只能用于交作业,但是有一定的学习价值

使用方法

​ 需要node环境

下载此项目依赖

npm install

数据库导入数据

导入leyue.sql语句

设置服务器端口在index.js中

app.listen(80, () => {
    console.log('http://127.0.0.1');
})

修改index.js 按需求配置

    req.db = mysql.createPool({
        host: 'localhost',//主机名
        user: 'root',//用户名
        password: 'root',//密码
        database: 'Leyue'//所操作的数据库
    })

运行此项目

node index,js

About

校园小程序论坛 接口 可以配合leyue小程序使用 该接口使用使用nodejs编写

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published