Git Product home page Git Product logo

laravel-blog's Introduction

项目简介

  • 基于Laravel5.5+VueJS2.x实现的Blog
  • 后台采用前后端完全分离(SPA)开发

安装步骤

1. 获取项目

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

cd blog
npm i
npm run prod
composer install

cp .env.example .env

2. 修改.env中的数据库信息以及邮件服务器信息(github登录)

3. 建立目录链接及数据初始化

php artisan key:generate
php artisan storage:link
php artisan migrate
php artisan db:seed

4. 配置passport

php artisan passport:keys
php artisan passport:client --personal
# 可以直接回车

5. 设置目录及文件权限

# 进入项目的上层目录
cd ../
sudo chown -R www:www blog/
sudo find blog/ -type f -exec chmod 644 {} \;
sudo find blog/ -type d -exec chmod 755 {} \;
sudo chmod -R 777 blog/storage
sudo chmod -R 777 blog/bootstrap/cache

6. 测试

后台访问:ServerName/admin 账号:admin 密码:123456

laravel-blog's People

Contributors

codingcn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.