# smartvideo-api **Repository Path**: linqiang4034/smartvideo-api ## Basic Information - **Project Name**: smartvideo-api - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-10 - **Last Updated**: 2021-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 所需 [Laravel 5.5版本]() [Dingo API 2.0 ]() ### 环境 Docker 统一开发环境 php 7.2 mysql 8.0 laravel 5.5 ### 禁止 不能执行 命令 ```shell composer update composer install ``` ### vendor 为保持稳定,扩展包不升级不安装,统一管理到`git`仓库中 Remove the `.git` directory of every dependency after the installation, then you can add them to your git repo. You can do that with `rm -rf vendor/**/.git` in ZSH or `find vendor/ -type d -name ".git" -exec rm -rf {} \;` in Bash. but this means you will have to delete those dependencies from disk before running composer update. ### Laravel 框架小技巧 [小技巧](https://github.com/alexeymezenin/laravel-best-practices) ### 开发 - 编辑器 : Phpstrom - 浏览器 : Chrome - 数据库更新的 `SQL` 记录到 `database/scripts/update.sql` 中 - .env .env.example 文件同步更新,涉及到的 bool 类型统一用 1 或者 0 表示 - 文件命名采用大驼峰 , 变量采用小驼峰, 数据库字段 采用下划线 - 为防止与Dingo API 冲突, include 关键字为 Dingo API默认请求关键字 ### 部署后命令 ```shell php artisan horizon:terminate php artisan config:clear php artisan cache:clear php artisan storage:link php artisan queue:flush chmod 777 .env chmod -R 777 bootstrap ``` ### 文档 生成命令 根据运行进行修改 ``` php artisan api:docs --name API_DOCU --use-version v2 --output-file /var/www/production/smartvideo-api/api_documentation.md ``` ### Docker image ```shell docker build -t api-server:latest . ``` ### 单点登录 ``` http://172.21.1.162:38482/#/sso/weaver/login?mobile={} ```