Skip to content

pbstar/pbstar-admin-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pbstar-admin-nodejs

本项目为 Node.js 版的 pbstar-admin 项目服务端示例。

在线文档:http://pbstar-admin-docs.pbstar.cn/docs/server.html

技术选型

  • 后端框架:Node.js + Express
  • 数据库:MySQL
  • 代码风格:Prettier

安装

  1. 克隆仓库
git clone https://github.com/pbstar/pbstar-admin-nodejs.git
  1. 安装依赖
npm install
  1. 导入src/db/pbstar_admin.sql数据库脚本
  2. 修改src/db/config.js中的数据库配置

运行

# 开发模式
npm run dev
# 生产模式
npm start

项目结构

src/
├── controllers/      # 控制器
├── db/               # 数据库配置
├── middlewares/      # 中间件
├── routes/           # 路由
├── utils/            # 工具函数
├── main.js           # 服务入口
└── app.js            # Express应用入口

About

Pbstar-admin 的 nodejs 版服务端,采用 node.js+Express+MySQL 等技术。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published