定制 arckteh/yii2-request-app 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arckteh/yii2-request-app

最新稳定版本:1.0.1

Composer 安装命令:

composer create-project arckteh/yii2-request-app

包简介

Requests management app based on Yii 2 Basic Project Template

README 文档

README

Requests management app based on Yii 2 Basic Project Template


For original template check Yii 2 Basic Project

The project implements a system for accepting and processing user requests from the site

INSTALLATION

Clone repository to your web server root

git clone git@github.com:arckteh/yii2-request-app app

Install on an existing server

If tou already have web server with composer installed and configured run project initialization:

composer create-project

Adjust the configuration: set cookie validation key in config/web.php

'request' => [
    // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
    'cookieValidationKey' => '<secret random string goes here>',
],

Adjust database settings in config files

config/db.php  
config/test_db.php

Now you can init databases with composer command

composer init-db

Access the application through the following URL

http://localhost/basic/web/

Install web server with Docker

Copy .env_template to the .env. If you want, change docker settings in the .env file

Start the container

docker compose up -d

Run project installation

docker compose run --rm php composer create-project

Adjust settings: Set cookie validation key in config/web.php and database configuration in config/db.php and config/test_db.php. Run database initialization

docker compose run --rm php composer init-db   

You can then access the application through the following URL:

http://loclhost

To stop and remove the container use command

docker compose  down

TESTING

To run all tests use the command:

vendor/bin/codecept run

And you can run the api tests with the command

vendor/bin/codecept run api

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-05