1 Star 0 Fork 0

4betterus / cell-blog

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

Cell Blog

基于Laravel7开发,Markdown语法的个人独立博客。

功能

  • 支持Markdown,文章实时预览效果
  • 支持多种编程语言代码高亮
  • 编辑器图片上传
  • 后台上传文件管理
  • 文章搜索
  • 文章分类
  • 文章标签
  • 热门文章
  • 随机格言
  • 文章管理(发布,评论开关,排序)
  • 自定义导航(显示开关,排序)
  • 自定义页面(发布开关)
  • 友情链接(显示开关,排序)
  • COS桶相册
  • 丰富的博客配置(方便扩展,支持自定义JS脚本)
  • 不蒜子计数
  • Leancloud计数
  • Valine评论插件
  • 文章分享插件

截图

前台首页.png
管理文章.png
编辑文章.png

安装

注意事项:PHP取消禁用函数putenv()symlink(),安装fileinfo扩展。

下载

git clone https://github.com/Lruihao/cell-blog.git

进入站点

cd cell-blog

生成.env

cp .env.example .env

编辑.env环境配置

APP_URL=http://localhost ##使用本地文件系统存储文件时,必须填写正确地址
APP_DEBUG=false ##关闭调试
DB_HOST= ##数据库地址
DB_PORT=3306 ##数据库端口
DB_DATABASE= ##数据库名称
DB_USERNAME= ##数据库用户
DB_PASSWORD= ##数据库密码

打开app\Providers\AppServiceProvider.php,注释SystemController:load() 防止后续步骤报错

    public function boot()
    {
        Schema::defaultStringLength(191);
        //SystemController::load();
    }

安装项目依赖

composer install

生成key

php artisan key:generate

运行数据迁移和后台数据填充

php artisan admin:install已包含数据迁移命令php artisan migrate
G:\cell-blog\app\Admin directory already exists !无需理会,继续执行剩下命令即可。

php artisan admin:install

php artisan admin:import media-manager

php artisan db:seed

默认下使用了本地文件系统,创建storage目录在public的软链接

php artisan storage:link

打开app\Providers\AppServiceProvider.php,取消注释SystemController:load()

    public function boot()
    {
        Schema::defaultStringLength(191);
        SystemController::load();
    }

将博客网站根目录指向入口public目录

如果使用Nginx,要设置伪静态

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

启动服务后,在浏览器打开http://localhost/admin/,使用用户名admin和密码admin登录.

License

Cell Blog is open-sourced software licensed under the MIT license.

Stargazers over time

MIT License Copyright (c) 2020 李瑞豪 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.

简介

基于 Laravel 7开发,支持 Markdown 语法的博客 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/fbus/cell-blog.git
git@gitee.com:fbus/cell-blog.git
fbus
cell-blog
cell-blog
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891