1 Star 0 Fork 2

陨落人间 / melog

forked from 雨思 / melog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

melog

melog

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

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

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

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

演示demo:https://js.i-i.me/(后台:/admin,账号:melog@i-i.me,密码:123456

特性

  1. 速度极快,超越大部分博客程序
  2. 轻量,前台无框架依赖,移动优先,自适应pc
  3. 简单,基于jj.js(类thinkphp)经典mvc框架,方便二次开发
  4. 安全,后台目录可自定义,密码重试次数限制
  5. 支持更换导航风格
  6. 支持切换主题,自定义主题可以共用默认主题文件
  7. 专题功能,可以定制个性页面

安装

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文件导入数据库。

V2版本升级V3,请运行v2_to_v3.sql数据库文件。

3. 运行程序

node server.js

访问首页

http://127.0.0.1:3003

访问后台

后台地址:http://127.0.0.1:3003/admin
默认账号:melog@i-i.me
默认密码:123456

其他

开发者博客

https://me.i-i.me/

jj.js MVC框架

Github: https://github.com/yafoo/jj.js

Gitee: https://gitee.com/yafu/jj.js

爱主页网址导航

https://www.i-i.me/

Nginx代理设置

location / {
    proxy_pass       http://127.0.0.1:3003;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

License

MIT

MIT License Copyright (c) 2019 雨思 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个基于jj.js构建的简单轻量级blog系统 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/im286er/melog.git
git@gitee.com:im286er/melog.git
im286er
melog
melog
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891