Code Monkey home page Code Monkey logo

laravel-vue's Introduction

使用 Laravel + Vue 开发单页引用

开发环境:

软件包 版本
Laravel 5.3
Vue >2.0
vue-resource > 1.0
vue-router > 2.0
vuex > 2.0

具体开发细节参考文章 Laravel + Vue 开发单页应用

安装

首先从 github 克隆项目到本地

git clone https://github.com/Flyerboy/laravel-vue laravel-vue

安装 Laravel 开发依赖

composer install
composer dump-autoload  // 生成自动加载文件

安装前端依赖

npm install

填充测试数据

首先要创建数据库,根据自己的配置创建
php artisan db:seed

运行

gulp  // 打包前端资源
php artisan serve // 开启 web 服务

打开浏览器访问 http://localhost:8000 查看效果

laravel-vue's People

Contributors

flyerboy avatar

Watchers

 avatar  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.