2017 © Pedro Peláez
 

project luban-desktop

The Laravel Framework of shopex luban desktop project.

image

shopex/luban-desktop

The Laravel Framework of shopex luban desktop project.

  • Tuesday, March 13, 2018
  • by shopex
  • Repository
  • 7 Watchers
  • 6 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13721 Forks
  • 0 Open issues
  • 53 Versions
  • 4 % Grown

The README.md

Shopex luban-desktop使用说明

luban-desktop是商派在Laravel 5.4的基础上开发的一款现代化的框架,其重构了商派原有ECOS框架的实用功能,可以极大的提高项目开发的效率。, (*1)

本框架除Laravel原有功能,还包含下面的包: 1. shopex/luban -- 负责etcd封装, 后端sevice调用 2. shopex/luban-admin --后台desktop样式,包含原有ECOS框架的Finder、typeobject等功能 3. shopex/luban-crud-generator 一个可以生curd脚手架 4. shopex/auth SSO统一登录, SLO统一登出, (*2)

一、起步

使用Composer创建项目, (*3)

composer create-project shopex/luban-desktop myproj dev-master

安装过程中会提示Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]?,是否需要删除版本信息,选择Y,删除,选择n不删除。, (*4)

composer create-project过程成包含以下步骤:, (*5)

git clone https://github.com/shopex/luban-desktop.git myproj
cd myproj
composer install
cp .env.example .env
php artisan optimize
php artisan key:generate

二、初始化项目

1、将laravel扩展包资源发布到资源目录, (*6)

php artisan vendor:publish

运行之后,可以看到如下输出:, (*7)

Copied Directory [/vendor/laravel/framework/src/Illuminate/Notifications/resources/views] To [/resources/views/vendor/notifications]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Pagination/resources/views] To [/resources/views/vendor/pagination]
Copied Directory [/vendor/shopex/luban-admin/publish/Middleware] To [/app/Http/Middleware]
Copied Directory [/vendor/shopex/luban-admin/publish/migrations] To [/database/migrations]
Copied Directory [/vendor/shopex/luban-admin/publish/Model] To [/app]
Copied Directory [/vendor/shopex/luban-admin/publish/Controllers] To [/app/Http/Controllers]
Copied Directory [/vendor/shopex/luban-admin/publish/resources/assets] To [/resources/assets/vendor/admin]
Copied Directory [/vendor/shopex/luban-admin/publish/resources/crud-generator] To [/resources/crud-generator]
Copied Directory [/vendor/shopex/luban-admin/publish/resources/views] To [/resources/views/vendor/admin]
Copied Directory [/vendor/shopex/luban-auth/publish/migrations] To [/database/migrations]
Copied Directory [/vendor/shopex/luban-auth/publish/Model] To [/app]
Copied Directory [/vendor/shopex/luban-auth/publish/Controllers] To [/app/Http/Controllers]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Mail/resources/views] To [/resources/views/vendor/mail]

2、安装依赖扩展包:, (*8)

npm install  --registry=https://registry.npm.taobao.org

3、编译静态资源, (*9)

// 运行所有 Mix 任务...
npm run dev

// 运行所有 Mix 任务和压缩资源输出
npm run production

如果是前端开发可以运行npm run watch-poll来监控资源文件修改,自动编译资源, (*10)

三、配置项目

1、配置数据库

.env里面配置数据库信息, (*11)

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

2、创建数据库, (*12)

php artisan migrate

3、配置ETCD 如果是微服务架构,则需要配置ETCD的地址,目前本项目在ETCD里面保存了SSO的相关信息:, (*13)

ETCD_ADDR=http://192.168.10.96:2379
ETCD_CONFIG_PATH=/luban/config/devops

四、运行

luban-desktop支持四种方式运行项目代码:, (*14)

1、artisan

php内置Serve, (*15)

php artisan serve

2、Nginx+php-fpm

此方式需要自行安装lnump, (*16)

3、Swoole

此方式安装php的swoole扩展。, (*17)

//发布配置文件到项目目录
php artisan vendor:publish --provider="Laravoole\LaravooleServiceProvider"

运行, (*18)

php artisan laravoole [start | stop | reload | reload_task | restart | quit]

4、Docker

在本项目根目录下有名为Dockerfile的文件,此文件是构建Docker镜像的描述文件,此方式一般用来部署正式环境使用。 a)、构建镜像:, (*19)

docker build --no-cache -t shopex/luban:desktop .

b)、运行容器:, (*20)

docker run -it -d -p 127.0.0.1:9050:9050 --name mydesktop  -e ETCD_ADDR=192.168.10.96:2379 shopex/luban:desktop

运行成功之后,可以通过127.0.0.1:9050来访问。 c)、登录容器:, (*21)

docker exec -it mydesktop bash

The Versions

13/03 2018

dev-master

9999999-dev

The Laravel Framework of shopex luban desktop project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework shopex

07/09 2017

v5.4.30.5

5.4.30.5

The Laravel Framework of shopex luban desktop project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework shopex

18/08 2017

v5.4.30.4

5.4.30.4

The Laravel Framework of shopex luban desktop project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework shopex

10/08 2017

v5.4.30.1

5.4.30.1

The Laravel Framework of shopex luban desktop project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework shopex

06/08 2017

dev-develop

dev-develop

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

04/07 2017

v5.4.30

5.4.30.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

11/05 2017

v5.4.23

5.4.23.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

28/04 2017

v5.4.21

5.4.21.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

20/04 2017

v5.4.19

5.4.19.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

17/03 2017

v5.4.16

5.4.16.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

15/03 2017

5.3.x-dev

5.3.9999999.9999999-dev

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

03/03 2017

v5.4.15

5.4.15.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

03/02 2017

v5.4.9

5.4.9.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

25/01 2017

v5.4.3

5.4.3.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

24/01 2017

v5.4.0

5.4.0.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

21/01 2017

v5.3.30

5.3.30.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

03/10 2016

v5.3.16

5.3.16.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

20/09 2016

v5.3.10

5.3.10.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

23/08 2016

v5.3.0

5.3.0.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

16/08 2016

5.2.x-dev

5.2.9999999.9999999-dev

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

27/04 2016

v5.2.31

5.2.31.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

15/04 2016

5.1.x-dev

5.1.9999999.9999999-dev

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

05/04 2016

v5.1.33

5.1.33.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

01/04 2016

v5.2.29

5.2.29.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

25/03 2016

v5.2.27

5.2.27.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

22/03 2016

v5.2.24

5.2.24.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

16/03 2016

v5.2.23

5.2.23.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

12/02 2016

v5.2.15

5.2.15.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

21/12 2015
30/08 2015

v5.1.11

5.1.11.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

01/07 2015

v5.1.4

5.1.4.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

23/06 2015

v5.1.3

5.1.3.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

11/06 2015

v5.1.1

5.1.1.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

09/06 2015

v5.1.0

5.1.0.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

08/06 2015

5.0.x-dev

5.0.9999999.9999999-dev

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

24/03 2015

v5.0.22

5.0.22.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

14/03 2015

v5.0.16

5.0.16.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

06/02 2015

v5.0.1

5.0.1.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

04/02 2015

v5.0.0

5.0.0.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel framework

09/11 2014

v4.2.11

4.2.11.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

01/06 2014

v4.2.0

4.2.0.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

15/04 2014

v4.1.27

4.1.27.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

19/01 2014

v4.1.18

4.1.18.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

11/12 2013

v4.1.0

4.1.0.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

14/10 2013

v4.0.9

4.0.9.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

07/09 2013

v4.0.7

4.0.7.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

07/09 2013

v4.0.8

4.0.8.0

The Laravel Framework.

  Sources   Download

MIT

The Requires

 

laravel framework

30/07 2013

v4.0.6

4.0.6.0

The Laravel Framework.

  Sources   Download

The Requires

 

laravel framework

10/06 2013

v4.0.5

4.0.5.0

The Laravel Framework.

  Sources   Download

The Requires

 

laravel framework

08/06 2013

v4.0.4

4.0.4.0

The Laravel Framework.

  Sources   Download

The Requires

 

laravel framework

28/05 2013

v4.0.0

4.0.0.0

  Sources   Download

The Requires

 

29/03 2013

v4.0.0-BETA4

4.0.0.0-beta4

  Sources   Download

The Requires

 

08/02 2013

v4.0.0-BETA3

4.0.0.0-beta3

  Sources   Download

The Requires