租房网使用的后台是nodejs 版本最低是10.0 所以必须使用10.0版本以上的node才可以运行 后台使用的是MySQL
首先需要进入后台的根目录文件下使用yarn
下载node所需要的所有插件
yarn
mysql配置文件在 /config/mysql.js
中,如果你对mysql有自己的需要可以进行修改
端口号配置文件在 /bin/www
如果你有需要可以进行修改
后台配置了cors 所以不存在跨域问题
文件设置完成之后在根目录文件输入
yarn start
在数据库内创建一个新的库
haozk 编码格式选择utf-8
然后将 db/hkzf_db.sql
的sql文件导入,然后修改/config/mysql.js
中的相应配置
浏览器地址栏直接输入
127.0.0.1:8080
可以打开对应的接口文档