apilaravue/apilaravue
Composer 安装命令:
composer create-project apilaravue/apilaravue
包简介
This is a framwork for large web projects. ApiLaravue uses Laravel 5.4 as backend integrated with laravel passport and laravel cors, Vuejs as frontend and the two communicate via API calls. It also include redis already installed and configured in the backend and frontend, a node server already crea
README 文档
README
ApiLaraVue
This is a framwork for large web projects. ApiLaravue uses Laravel 5.4 as backend integrated with laravel passport and laravel cors, Vuejs as frontend and the two communicate via API calls. It also include redis already installed and configured in the backend and frontend, a node server already created and configure for realtime communication and some vue packages are also install in the frontend such as vue-router, vue-resource, vue-socket.io, and sweetalert.
Learning ApiLaravue
Before starting with ApiLaravue 1.0, make sure you have some knowledge on:
- Laravel from the official Laravel documentation.
- Vuejs from the official Vuejs documentation
- Nodejs from the official Nodejs documentation
If you are up to the above standard, you can learn from
- our website ApiLaravue on gihub.io
- or from our docs repository
Installing
-
Run
$ composer create-project apilaravue/apilaravue. -
Download and Intall nodejs for your OS from https://nodejs.org/en/download/
-
Install redis
Linux:
$ wget http://download.redis.io/releases/redis-4.0.1.tar.gz $ tar xzf redis-4.0.1.tar.gz $ cd redis-4.0.1 $ makeMac:
if you are not having homebrew, intall it from https://brew.sh/ Run $ brew install redisWindows:
One click Redis install as a Windows service: https://github.com/rgl/redis/downloads Download and run the top .exe (ignore the "download as zip" button) Edit: For the latest versions of Redis for Windows look at MSOpenTech/redis. See Todd Menier's answer for more information. -
start redis server Run
redis/serverand do not close the terminal window. Linux:src/redis-server -
Open a new terminal window and CD to apilaravue/server.
-
Run
npm install. This installs all dependencies. -
Run
node server.jsand do not close the terminal window. This will start the node server -
Open a new terminal window and CD to apilaravue/backend.
-
Run
composer install. This installs all of Laravel's dependencies. -
Run
mv .env.example .env. This enables your env files to set your app into local mode. -
Run
php artisan key:generate. This generates a secure cipher key for encrypting your data. -
Create a database named
__laravelvue -
Run
php artisan migrate --seed -
Run
php artisan passport:install -
Copy the
client secretofClient ID: 2displayed in the terminal -
Edit the file
frontend/src/packages/config/backendConnection.jsand changeclient_secretto what you have copied and save the file -
Run
php artisan serve. This serves your application to the browser. You can also use Homestead, LAMP, WAMP, etc. -
Open a new terminal window and CD to apilaravue/frontend.
-
Run
npm install. This installs all of Vue's dependencies. -
Run
npm run dev. This will open the frontend landing view on your default browser. that ishttp://localhost:8080 -
Create something great!
Frontend
If you are not familiar with vuejs, you should check their documentation at https://vuejs.org/v2/guide/
Backend
If you are not familiar with Laravel, you should check their documentation at https://laravel.com/docs/5.4
Server
If you are not familiar with Nodejs, you should check their documentation at https://nodejs.org/api/http.html
you can also check the example at https://nodejs.org/api/synopsis.html
Or quick start with W3schools at https://www.w3schools.com/nodejs/nodejs_http.asp
Contributing
Thank you for considering contributing to the ApiLaraVue framework.
Security Vulnerabilities
If you discover a security vulnerability within ApiLaraVue, please send an e-mail to Kamga Simo Junior at kamgasimojunior@gmail.com. All security vulnerabilities will be promptly addressed.
License
The ApiLaraVue framework is open-sourced software licensed under the MIT license.
apilaravue/apilaravue 适用场景与选型建议
apilaravue/apilaravue 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 40 次下载、GitHub Stars 达 10, 最近一次更新时间为 2017 年 08 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「nodejs」 「php」 「laravel」 「vuejs」 「apilaravue」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 apilaravue/apilaravue 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 apilaravue/apilaravue 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 apilaravue/apilaravue 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
DNode RPC protocol for PHP 5.3
Send events to a websocket real time engine though PHP
Send events to a websocket real time engine though PHP
Alfabank REST API integration
Forked from wisembly/elephant.io
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-07