murodov20 / dengitest

Test app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test project for "Dengi.Srazu"


Requirements

Minimum requirements:

  • Apache2
  • PHP7
  • Mysql 5.7

Installation

  • Clone project: git clone https://github.com/murodov20/dengitest.git
  • Install composer dependencies: composer install
  • Configure apache2 configurations for backend & api entry points
  • Run init
  • Create new database and edit db config: /common/config/main-local.php
  • Set api_base_url property in /console/config/params-local.php. For example: 'api_base_url' => 'http://mytest.yii/api'
  • Migrate
    yii migrate
  • Run yii prepare/install. This command will generate api user and some settings
  • Need 2 cron commands for queue (This is nonpro solution. If you want to professional sln, you need run queue with supervisor or systemd):
* * * * * /usr/bin/php /path/to/project/yii execute-payments
* * * * * /usr/bin/php /path/to/project/yii queue/listen 60

Two microservices here:

  • Console application as Client
  • Api application as API server

About

Test app

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 93.6%Language:Shell 3.2%Language:CSS 2.0%Language:Batchfile 1.0%Language:Dockerfile 0.2%