21

非常完善且扩展性非常高的在线制作 web 页面的工具

 4 years ago
source link: https://github.com/ymm-tech/gods-pen-server
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

码良服务端

BJBbMj7.png!web

:house: 官网

官网: https://godspen.ymm56.com/

使用手册: https://godspen.ymm56.com/doc/cookbook/introduce.html

在线体验: https://godspen.ymm56.com/admin/#/home

私有部署: https://godspen.ymm56.com/doc/cookbook/install.html

v2MZvqa.png!web

:point_right: `喜欢别忘了加star支持我们,你的支持是我们坚持的动力` :point_left:

项目构成

码良系统由3个项目构成,分别是 gods-pen-server 码良服务端、

gods-pen-admin

码良管理后台以及于7月份就已经开源的 gods-pen 码良编辑器。

详细部署文档

https://godspen.ymm56.com/doc/cookbook/source.html

配置说明

码良依赖 es、redis、mysql、邮件、oss服务,因此需要配置这些服务的信息

config/ 文件夹下存放了开发配置和生产配置

前期准备

除过 mysql 以外,其他服务都开箱即可使用,无需进行初始化之类的操作

mysql 需要使用 sql/init.sql 来初始化表结构和表数据

开发配置

本地开发时,使用的是配置文件为 config/config.dev.js

生成配置

服务器部署时,使用的是配置文件为 config/config.production.js

开发

开发

npm run dev

debug(在vscode中端点调试)

npm run debug

部署

启动服务

npm run serve

终止服务

npm run stop

查看日志

tail $HOME/logs/master-stdout.log -n 500 -f # stdout
tail $HOME/logs/master-stderr.log -n 500 -f # stderr

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK