The server code adds eslint verification and is formatted by Prettier (using vscode requires installing the corresponding plug-in)
Fixed the problem of incorrect pagination style in user center
Fixed the problem that when editing with ueditor, pictures pasted through the clipboard cannot be uploaded to cdn
Added tab switching to background management
The background management has added io notification, and key operations will be notified to the administrator.
Fixed the issue where the password retrieval link jumps abnormally
DoraCMS video introduction
DoraCMS update log
1、nodejs 12 + eggjs 2 2、vue-cli 3、mongodb 4+
Documentation: DoraCMS Development Documentation
API: DoraCMS API document demonstration address: Front-end Development Club
Backend login: https://www.html-js.cn/dr-admin
Test account: doracms/123456
DoraCMS
(local environment)The premise is that you need to install
docker
in advance.
DoraCMS
can run locally quickly relying on docker-compose
. You only need to do this:
Download the code locally, enter the code root directory, and execute it in the terminal
docker-compose up -d
Next, wait for a few minutes. After seeing that the execution is successful, the browser accesses
http://127.0.0.1:8080/
DoraCMS
, make sure you have completed the following tasksVisit for environment preparation details
nodejs
has been installed, version v12.13.0
Mongodb
, version 4.0
has been installed and started
npm i doracms -g // 全局安装 doracms 命令行工具 dora create mycms // 本地/服务器环境任意目录执行
To execute the dora create mycms
command, you need to fill in the relevant parameters (you can press Enter all the time in the local environment, and there will be a default value). The relevant parameters are explained as follows:
?Project name: [必填]项目名称,英文不含空格 ?Website(ip or domain): [[非必填,默认 http://127.0.0.1:8080 ]网站访问域名或IP+端口号,需要带http/https,如 https://www.html-js.cn, http://120.25.150.169:8080 ?env: [非必填,默认 development ]服务器运行环境 ?Server port: [非必填,默认 8080 ]DoraCMS 启动默认端口号,website 中如果也有端口号,那么理论上这两个端口号是相同的 ?Mongodb url: [非必填,默认 mongodb://127.0.0.1:27017/doracms2 ] mongodb 连接字符串,如果带密码,eg. mongodb://username:[email protected]:27017/doracms2 ?Mongodb bin path: [非必填,默认为空]Mongodb bin目录路径,注意结尾必须带 / ,windows 环境下路径中 必须改为 / 如 C:/mongodb/mongodb/bin/
Source code to build development environment
http://127.0.0.1:8080 // 开发环境 http://120.25.150.169:8080 // 生产环境只配了IP,端口号已加入安全组 https://www.html-js.cn // 生产环境配置了域名并做好了域名解析
npm rundev
pm2 start server.js --name doracms2
pm2 stop doracms2
pm2 restart doracms2
API access address: http://127.0.0.1:8080/static/apidoc/index.html
http://127.0.0.1:8080
http://127.0.0.1:8080/dr-adminLogin account: doramart/123456 doracms/123456
If you find DoraCMS useful, you can treat Brother Sheng to a cup of coffee (⊙o⊙)
MIT