{"id":22141219,"url":"https://github.com/yafoo/melog","last_synced_at":"2025-07-25T23:32:03.360Z","repository":{"id":40044723,"uuid":"206485722","full_name":"yafoo/melog","owner":"yafoo","description":"一个基于jj.js(nodejs)构建的简单轻量级blog系统","archived":false,"fork":false,"pushed_at":"2022-12-06T19:35:53.000Z","size":2359,"stargazers_count":43,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-02T23:12:26.862Z","etag":null,"topics":["blog","cms","javascript","markdown","nodejs"],"latest_commit_sha":null,"homepage":"https://me.i-i.me/special/melog.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yafoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-05T05:56:20.000Z","updated_at":"2023-01-01T11:24:10.000Z","dependencies_parsed_at":"2023-01-23T15:15:34.374Z","dependency_job_id":null,"html_url":"https://github.com/yafoo/melog","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafoo%2Fmelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafoo%2Fmelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafoo%2Fmelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafoo%2Fmelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yafoo","download_url":"https://codeload.github.com/yafoo/melog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227629031,"owners_count":17796054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","cms","javascript","markdown","nodejs"],"created_at":"2024-12-01T21:11:28.899Z","updated_at":"2024-12-01T21:11:29.941Z","avatar_url":"https://github.com/yafoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# melog\n\n![melog](https://me.i-i.me/static/images/melog_360.png \"melog\")\n\nmelog，一个基于jj.js(nodejs)构建的简单轻量级blog系统。代码极简，无需编译，方便二次开发。\n\n仓库地址：[https://github.com/yafoo/melog](https://github.com/yafoo/melog \"https://github.com/yafoo/melog\")\n\n码云镜像：[https://gitee.com/yafu/melog](https://gitee.com/yafu/melog \"https://gitee.com/yafu/melog\")\n\n官网地址：[https://me.i-i.me/special/melog.html](https://me.i-i.me/special/melog.html \"https://me.i-i.me/special/melog.html\")\n\n演示demo：[https://js.i-i.me/](https://js.i-i.me/ \"https://js.i-i.me/\")（后台：[/admin](https://js.i-i.me/admin \"https://js.i-i.me/admin\")，账号：`melog@i-i.me`，密码：`123456`）\n\n## 特性\n\n1. 速度极快\n2. 轻量，前台无框架依赖，移动优先，自适应pc\n3. 简单，基于jj.js（类thinkphp）经典mvc框架，方便二次开发\n4. 安全，后台目录可自定义，密码重试次数限制\n5. 支持更换导航风格（cms或blog）\n6. 支持更换主题，自定义主题可以共用默认主题文件\n7. 专题功能，可以定制个性页面\n8. Markdown编辑、实时预览，支持手机端，支持截图、图片文件粘贴上传\n\n## 运行环境\nnodejs \u003e= v12\nmysql \u003e= v5.5\n\n## 安装\n\n### 1、程序部署\n\n- Docker方式部署\n\n```bash\n# 镜像拉取\ndocker pull yafoo/melog\n\n# 容器运行\ndocker run -p 3003:3003 --restart unless-stopped --name melog -d yafoo/melog\n\n# 容器运行（配置文件、站点数据保存到宿主机）\ndocker run -p 3003:3003 --restart unless-stopped --name melog -d -v $PWD/melog/config:/melog/config -v $PWD/melog/upload:/melog/public/upload yafoo/melog\n```\n\n- Git方式部署\n\n```bash\n# 也可以直接到github或gitee上下载压缩文件\ngit clone https://github.com/yafoo/melog.git\ncd melog\nnpm i\n\n# 运行程序，系统默认运行在3003端口\nnode server.js\n```\n\n### 2、配置数据库\n\n- 浏览器打开网址 `http://127.0.0.1:3003/install`，配置并点击安装\n\n\u003e 提示：如果网址打开出错，或者安装失败，可以修改 `/config/app.js` 文件，将 `app_debug` 设置为 `true`，打开调试模式，重启程序并重新安装，在控制台可以看到运行日志。\n\n## 访问首页\n\n```\nhttp://127.0.0.1:3003\n```\n\n## 访问后台\n\n- 后台地址：`http://127.0.0.1:3003/admin`  \n- 默认账号：`melog@i-i.me`  \n- 默认密码：`123456`\n\n\u003e 提示：登录后请及时在后台修改账号密码\n\n## 旧版升级\n\n### 1、V2版本升级\n\nv2版本升级v3，请手工运行 `v2_to_v3.sql` 文件升级数据库，然后创建文件 `/config/install.js`，内容如下：\n\n```javascript\nmodule.exports = {\n    install: true\n};\n```\n\n### 2、V3.0版本升级\n\n系统从v3.1版开始支持系统安装。v3.0版升级后，也需手工创建 `/config/install.js` 文件，内容同v2升级。\n\n## 其他\n\n#### 开发者博客\n-  [https://me.i-i.me/](https://me.i-i.me/ \"https://me.i-i.me/\")\n\n#### jj.js MVC框架\n-  Github: [https://github.com/yafoo/jj.js](https://github.com/yafoo/jj.js \"https://github.com/yafoo/jj.js\")\n-  Gitee: [https://gitee.com/yafu/jj.js](https://gitee.com/yafu/jj.js \"https://gitee.com/yafu/jj.js\")\n\n#### 爱主页网址导航\n-  [https://www.i-i.me/](https://www.i-i.me/ \"https://www.i-i.me/\")\n\n## Nginx代理设置\n\n```nginx\nlocation / {\n    proxy_pass       http://127.0.0.1:3003;\n    proxy_http_version 1.1;\n    proxy_set_header Upgrade $http_upgrade;\n    proxy_set_header Connection \"upgrade\";\n    proxy_set_header Host $host;\n    proxy_set_header X-Real-IP $remote_addr;\n    proxy_set_header X-Forwarded-Proto $scheme;\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n}\n```\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyafoo%2Fmelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyafoo%2Fmelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyafoo%2Fmelog/lists"}