- 文章分类
- 发布文章,采用tinymce富文本编辑器
- 文章标签
- 图片上传,支持七牛云上传
- 评论功能
- Nginx >= 1.12
- PHP >= 7.0.0
- Mysql >= 5.6
- Redis >= 3.2
本项目代码使用 PHP 框架 Laravel 5.2 开发,本地开发环境使用 Docker。
克隆 blog
源代码到本地:
git clone https://github.com/gentlemanwuyu/blog.git
composer install
cp .env.example .env
你可以根据情况修改 .env
文件里的内容,如数据库连接、缓存等:
1). 安装 yarn
windows系统直接去官网 https://yarn.bootcss.com/ 下载安装最新版本。 Linux系统可使用apt直接安装。
2). 安装 前端扩展包
yarn install
如果是windows系统,在执行时需要加上--no-bin-links
3). 安装 gulp
yarn global add gulp
4). 编译前端内容
// 运行所有gulp编译任务...
gulp
// 运行所有gulp编译任务并缩小输出,一般是正式环境使用。
gulp --production