3

melog,一个极为轻量的nodejs+mysql博客程序

 2 years ago
source link: https://segmentfault.com/a/1190000040721715
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.
neoserver,ios ssh client

melog

title=

melog,一个基于jj.js(nodejs+mysql)构建的简单轻量级blog系统。代码极简,无需编译,方便二次开发。

仓库地址:https://github.com/yafoo/melog

码云镜像:https://gitee.com/yafu/melog

官网地址:https://me.i-i.me/melog/

演示demo:https://js.i-i.me/(后台:admin,账号:[email protected],密码:123456

git clone https://github.com/yafoo/melog.git
cd melog
npm i

1. 修改配置

修改/config/app.js文件,关闭调试模式

app_debug: false,

修改/config/db.js文件,配置数据库

type      : 'mysql', // 数据库类型
host      : '127.0.0.1', // 服务器地址
database  : 'melog', // 数据库名
user      : 'root', // 数据库用户名
password  : '', // 数据库密码
port      : '3306', // 数据库连接端口
charset   : 'utf8', // 数据库编码默认采用utf8
prefix    : 'melog_' // 数据库表前缀

2. 导入数据

将根目录下melog.sql文件导入数据库。

3. 运行程序

node server.js
http://127.0.0.1:3003

后台地址:http://127.0.0.1:3003/admin
默认账号:[email protected]
默认密码:123456


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK