3 Star 23 Fork 15

孔乙己拉夫米 / react-ant-admin-server

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

react-ant-admin 后台项目

本项目使用express快速搭载项目。

使用前,请安装nodejs环境,mysql 数据库环境git 代码管理工具

安装

  • 在系统盘下打开 dos 窗口(cmd),运行以下命令拉取文件。
D:>git clone https://gitee.com/kong_yiji_and_lavmi/react-ant-admin-server.git
  • 安装项目依赖
D:\react-ant-admin-server>cnpm i # or yarn install  / npm i
  • 修改自己定义的配置

token的secret 加密字符串

// ${root}/common/jwt.js
const secret = "your secret";

项目启动地址,端口

// ${root}/common/index.js
module.exports = {
  host: "0.0.0.0",
  port: 8081,
};

数据库地址,用户名,密码,数据库名

// ${root}/common/mysql.js
const pool = mysql.createPool({
  host: "127.0.0.1", // 本地
  user: "root",
  password: "your password",
  database: "react_admin", // 数据库名
  port: "3306",
  multipleStatements: true, // 允许同时执行多条sql语句
});
  • 创建一个数据库名为react_admin,编码使用utf8,编码排序使用utf8_general_ci

在根目录下有一个react_admin.sqlsql 备份文件。导入刚刚创建的数据库即可。

不太了解数据库的朋友在这里推荐使用navicat来导入数据库。

启动

完成了以上操作之后,即可开始启动项目。

D:\react-ant-admin-server>npm run start

此时出现一下语句即代表成功!

  server is starting:
    http://监听地址:端口号

接口文档地址

如有问题欢迎骚扰~ qq 交流群:564048130

qrcode

About

react-ant-admin后台web服务,使用nodejs创建 expand collapse
NodeJS and 2 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
NodeJS
1
https://gitee.com/kong_yiji_and_lavmi/react-ant-admin-server.git
git@gitee.com:kong_yiji_and_lavmi/react-ant-admin-server.git
kong_yiji_and_lavmi
react-ant-admin-server
react-ant-admin-server
master

Search