• Stars
    star
    187
  • Rank 205,740 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build single page web APP using: VueJS + webpack + semantic-UI + Laravel

本库停止更新 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

参考资料

待续

More Repositories

1

laravel-upload-manager

Upload, validate, storage, manage by API for Laravel 5.x/6.0
PHP
79
star
2

scaffold

Scaffold for laravel
PHP
50
star
3

workerboy

Workerman3 for Laravel5
PHP
45
star
4

crc16-php

crc16 hash for PHP
PHP
14
star
5

head-teacher-helper

班级学生管理助手
Vue
11
star
6

discount-and-coupon

The core logic about discount and coupon. Useful to manage discount campaign, defining coupon and calculate the final price.
PHP
10
star
7

laravel-kefu5

客服5的Laravel5 SDK
PHP
10
star
8

laravel-query-filter

An easier way to filter Eloquent and Models. Save you from Request::input and Where hell.
PHP
6
star
9

space-destroyer

A 2D vertical shooting game built with React
TypeScript
3
star
10

jam-span

A VueJS component to perform a jumping text with radio jam effect
Vue
3
star
11

benthos-modbus-processor

Map Modbus data into JSON object.
Go
2
star
12

module-upload

Upload Module for zgldh/scaffold
Vue
2
star
13

online_achievement

PHP
2
star
14

amqp-quacker

Send mock data to your AMQP exchange.
Go
2
star
15

kafka-playground

A single broker Kafka setup for learning or testing.
Shell
2
star
16

epidemiological-survey-post-analysis

1
star
17

kamailio-mysql-docker-compose

Dockerfile
1
star
18

easyswoole-docker-compose-starter

A docker-compose starter for easyswoole project
PHP
1
star
19

docker-typeorm-cli

TypeORM CLI environment image
Dockerfile
1
star
20

module-user

User Module for zgldh/scaffold
Vue
1
star
21

zgldh.github.io

My github.io site
HTML
1
star
22

docker-php-core

Dockerfile
1
star
23

module-activity-log

Action Log Module for zgldh/scaffold
Vue
1
star
24

sebastian

Sebastian helps me out of mess.
1
star
25

scroll-to-top

A scroll page/container to top button made with Vue2
Vue
1
star
26

docker-openvpn-socket-proxy

A docker solution to export an openvpn client as a socket5 proxy.
Shell
1
star
27

comfort-temperature

To calculate the comfort temperature from the standard of ASHRAE-55
JavaScript
1
star
28

texlive-full

自用的Latex编译环境,可以配合 LaTeX-Workshop 一起使用。
Dockerfile
1
star