Giter VIP home page Giter VIP logo

vuejs-laravel's Introduction

本库停止更新 Deprecated

想用 Laravel + VueJS 做后台的朋友可以移步这里 https://github.com/zgldh/scaffold

Please check this repo instead: https://github.com/zgldh/scaffold

vuejs-laravel

VueJS + webpack + semantic-UI + Laravel

  • 前后分离的快速开发框架。
  • 自带 Laravel 基础的账号系统。
  • 前端单页面Web应用
  • Webpack 构建前段页面
  • 使用 babel 来支持 ECMAScript6
  • 使用 Vue 的单文件组件
  • 使用最新的 vue-cli 2.0

安装

  1. 克隆代码

  2. 安装后台

        cd backend
        composer install
        // https://laravel.com/docs/5.2
        php artisan key:generate
        php artisan vendor:publish
        php artisan migrate
    
  3. 配置Web服务器,需要支持 PHP5.6 以上。 例如域名为 vuejs-laravel。服务器 root 配置到项目的public目录下。(千万注意不是backend/public)

  4. 安装前台

        cd frontend
        npm install
        
    
  5. 配置前台后台代理。打开 frontend/config.js, 修改 proxyTable 来连接后台API。 参考: http://vuejs-templates.github.io/webpack/proxy.html

  6. 完毕

开发

    cd frontend
    npm run dev

然后访问 http://localhost:8080

frontend/src 目录包含了前端代码。代码改动能实时反映在浏览器里,我百思不得其解。

backend 目录里面就是典型的Laravel后端代码

发布

    cd frontend
    npm run build

然后编译过的前端代码就出现在 public 目录下。访问你本地的Web服务器即可浏览。

路线图

RoadMap.md

参考资料

待续

vuejs-laravel's People

Contributors

zgldh avatar

Watchers

 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.