Skip to content

gentlemanwuyu/blog

Repository files navigation

Laravel博客

基础功能

  • 文章分类
  • 发布文章,采用tinymce富文本编辑器
  • 文章标签
  • 图片上传,支持七牛云上传
  • 评论功能

运行环境要求

  • Nginx >= 1.12
  • PHP >= 7.0.0
  • Mysql >= 5.6
  • Redis >= 3.2

开发环境部署/安装

本项目代码使用 PHP 框架 Laravel 5.2 开发,本地开发环境使用 Docker

基础安装

1. 克隆源代码

克隆 blog 源代码到本地:

 git clone https://github.com/gentlemanwuyu/blog.git

2. 安装扩展包依赖

 composer install

3. 生成配置文件

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published