arckteh / yii2-request-app
Requests management app based on Yii 2 Basic Project Template
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=7.4.0
- doctrine/annotations: <2.0.0
- yii2mod/yii2-swagger: ^1.1
- yiisoft/yii2: ~2.0.45
- yiisoft/yii2-bootstrap5: ^2.0
- yiisoft/yii2-jui: ^2.0
- yiisoft/yii2-symfonymailer: ~2.0.3
Requires (Dev)
- codeception/codeception: ^5.0.0 || ^4.0
- codeception/lib-innerbrowser: ^4.0 || ^3.0 || ^1.1
- codeception/module-asserts: ^3.0 || ^1.1
- codeception/module-filesystem: ^3.0 || ^2.0 || ^1.1
- codeception/module-rest: ^3.3
- codeception/module-webdriver: ^3.2
- codeception/module-yii2: ^1.1
- codeception/verify: ^3.0 || ^2.2
- phpunit/phpunit: ~9.5.0
- symfony/browser-kit: ^6.0 || >=2.7 <=4.2.4
- yiisoft/yii2-codeception: ^2.0
- yiisoft/yii2-debug: ~2.1.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.2.0
This package is auto-updated.
Last update: 2025-02-16 14:37:32 UTC
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