deadpoolzephyr / store
存储模块
Requires
- php: >=7.0
- yiisoft/yii2: ~2.0.13
Requires (Dev)
- phpunit/phpunit: 8.*.*
This package is auto-updated.
Last update: 2024-09-21 03:24:01 UTC
README
存储模块
此模块应与计算机模块一起使用。单独使用没有问题,但与计算机模块一起使用时,可以创建一个更有逻辑的程序。
安装
Ubuntu用户可以通过以下链接进行自动安装。
https://gist.github.com/ahmetbaranyilmaz/1797dd519fc6442e51665589cabf9631
虚拟机(Vagrant)安装
应依次安装以下软件,并生成GitHub token。
VirtualBox
Vagrant
Git
通过点击“GitHub API token Generate new token”创建新的token。
以管理员权限打开终端(命令行),执行以下命令。
vagrant plugin install vagrant-hostmanager
应将以下目录中的vagrant-local.example.yml文件复制为vagrant-local.yml。
@portal/vagrant/config
在vagrant-local.yml文件中应按以下方式定义GitHub api token。
.... github_token: 3ae46db93b308e80f62a9c1e3b16511b19541ad9 ....
启动Vagrant虚拟机进行安装。应在portal目录下运行此命令。
vagrant up
然后通过ssh连接到Vagrant虚拟机。
ssh -i .vagrant/machines/webgece/virtualbox/private_key vagrant@webgece
然后执行migrate操作,以便能够将模块相关的表加载到数据库中。
php yii migrate/up --migrationPath=@vendor/deadpoolzephyr/computer/migrations
composer require deadpoolzephyr/store
写入。模块
http://advanced/backend/web/index.php?r=store/default/index