Web-editor-server
Web-editor-server copied to clipboard
基于 Node 开发的Web-Editor(v.0.1.0版本)服务端支持
Web-editor-server
基于Koa.js开发的后端服务器,对Web-Editor提供配套接口
1. 下载
git clone https://github.com/bojue/Web-editor-serve.git
cd Web-editor-server
npm install
2. 初始化数据库
创建数据库(Database): tempo,并且将
Web-editor-server/init_db_mysql/目录下面数据库表导入数据库 tempo
- 创建数据库:
tempo

- 导入数据

3. 配置
- 服务器
默认服务器地址localhost:3000
通过项目src/app.js文件配置自己需要的服务器:
const HOST_NAME = 'localhost';
const POST = 3000;
- 数据库
目录: src/configs/DB_mysql.js配置服务器连接信息:
const config = {
host : 'localhost',
user : 'root',
password : "admin123",
database : 'tempo'
}
4. Run server
npm run start