Git Product home page Git Product logo

yuan-lee / doracms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doramart/doracms

0.0 1.0 0.0 18.36 MB

DoraCMS是基于Nodejs+eggjs+mongodb编写的一套内容管理系统,结构简单,较目前一些开源的cms,doracms易于拓展,特别适合前端开发工程师做二次开发。

Home Page: https://www.html-js.cn

JavaScript 73.86% CSS 6.58% HTML 5.94% Java 0.01% Vue 13.60%

doracms's Introduction

DoraCMS 2.1.5

DoraCMS

DoraCMS 视频简介

DoraCMS 视频简介

2.1.5 版本更新

  • 抽离了邮件发送为独立插件
  • 新增邮件管理,管理邮件模板,可以批量定时发送邮件
  • 优化了绑定编辑的逻辑
  • 内容管理添加了分类筛选,并增加了导入word 格式的功能
  • 优化了分类管理的样式和删除逻辑
  • 修复了管理员编辑,角色无法正确读出的问题以及编辑管理员信息偶尔会导致密码被改动的问题
  • 系统配置中加入了网站logo上传功能
  • 修复了在宽屏下默认模板会拉长的问题
  • 后台管理图标优化以及细节修改

注意:2.1.5 版本新增的插件中添加了两个依赖,您需要在合并代码后,分别在以下两个目录下执行 npm install 单独安装依赖

cd lib/plugin/egg-dora-content
npm install
cd lib/plugin/egg-dora-maildelivery
npm install

说明

DoraCMS 2.1.5 使用的技术栈:

1、nodejs 12.13.0 + eggjs 2
2、vue-cli
3、mongodb 4+

文档: DoraCMS 开发文档
演示地址: 前端开发俱乐部

后台登录: https://www.html-js.cn/dr-admin
测试账号:doracms/123456

Windows 下开发环境搭建

Windows 下开发环境搭建

MAC OS 开发环境搭建

安装最新稳定版 NodeJS (12.13.0):

https://nodejs.org/zh-cn/

设置环境变量(以mac为例,修改 .bash_profile文件)

vi ~/.bash_profile

export NODE_ENV=development
MONGODBPATH=/Users/Dora/Documents/dora/soft/mongodb/bin
PATH="${MONGODBPATH}:${PATH}"
export PATH

source ~/.bash_profile

以上步骤做了两件事情:
1、设置nodejs环境变量为 development,生产环境记得改为 production
2、将mongodb bin 目录添加到全局变量中,便于在终端的任何位置执行mongo脚本,注意改成自己安装mongodb的实际路径

安装并启动 Mongodb (++mongodb不要设置密码访问++)

https://www.mongodb.com/download-center#community

安装全局依赖

npm install egg-scripts -g   // eggjs 脚本执行
npm install gulp -g  // 静态资源构建
npm install apidoc -g  // api文档生成

安装本系统依赖(代码根目录)

npm install

安装插件缺少的依赖

路径 lib/plugin/

cd lib/plugin/egg-dora-content
npm install
cd lib/plugin/egg-dora-maildelivery
npm install

初始化数据

npm run init

网站图片资源可从这里获取 下载链接: https://pan.baidu.com/s/1th7Qlz4eJGNN3w_Tacl9AQ 提取码: jczt ,解压后放到项目根目录下 app/public/upload (替换)。

开发模式启动

npm run dev

生产模式启动

npm start

生产模式停止

npm run stop

生成api文档

npm run makePrdDoc

api访问地址: http://localhost:8080/static/apidoc/index.html

首页

http://localhost:8080

后台登录

http://localhost:8080/dr-admin
登录账号:doramart/123456    doracms/123456

清空数据

启动mongodb(执行mongodb安装目录下mongod.exe),cmd窗口打开mongo.exe
// 查看数据库列表
show dbs
// 查看集合列表
show collections
// 使用数据库doracms2
use doracms2
// 清除所有文章信息
db.contents.find()
db.contents.remove({})
// 清除所有留言信息
db.messages.find()
db.messages.remove({})

技术交流群

捐赠

如果你发现DoraCMS很有用,可以请生哥喝杯咖啡(⊙o⊙)哦

LICENSE

MIT

doracms's People

Contributors

doramart avatar yuexing0921 avatar amorist avatar amphineko avatar markyeahjr avatar bryant1410 avatar dolare avatar easyui avatar gitkmw avatar cobain avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.