korkiss / altarix_test
Test project for altarix
Requires
- php: >=5.4.0
- korkiss/yii2-taxi-extension: dev-master
- yiisoft/yii2: ~2.0.5
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-swiftmailer: ~2.0.0
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/specify: ~0.4.3
- codeception/verify: ~0.3.1
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is not auto-updated.
Last update: 2024-04-22 12:45:14 UTC
README
Installing using Composer
If you do not have Composer, follow the instructions in the Installing Yii section of the definitive guide to install it.
At first clone project from GitHUb as ususal. Create a folder and run command inside it.
git clone https://github.com/korkiss/yii2-taxi-extension.git
Next step is to update dependencies for Yii2 project
composer update
Configure your database for Yii2 properly working in config/db.php. For example we are going to use Postgres:
return [
'class' => 'yii\db\Connection',
'dsn' => 'pgsql:host=localhost;port=5432;dbname=altarix',
'username' => 'postgres',
'password' => 'postgres',
'charset' => 'utf8',
];
Final step for installation is to run migration for Database. Simply run migration script in Root folder of a project.
yii migrate
Running cron
We are looking for Taxi number 'em33377' in public database using SOAP request. To run cron in proper way you have run
yii cron/em33377
To emulate search for taxi driver without RegNumber run
yii cron/em33378
Running web server
Simplies way to run web server is to run in command line
yii serve
Then open http://localhost:8080/
Then login to system using Username/Password pair admin/admin and "Cron Results" link will be visible then.