ENVIRONMENT:
IJSON
- Invert json host and port (with protocol)PROJECT_ALIAS
- megofon, easysoup, etc..
Run:
-
Get code:
git clone [email protected]:kakadu-dev/base-backend.git
-
Configure (pass environment variables below for each step):
composer install
php init
- Configure if
prod
|dev
php yii start/configure
- Configure if local development
common/config/main-local.php
etc...
- Configure if
- Run docker container
ijson
andmysql
indocker-compose.yml
docker-compose run mysql docker-compose run ijson
- Init RBAC
php yii rbac/init
- Apply migrations
php yii migrate
- Start server
php yii start
- See
scratches
folder for make requests
Tests:
Import Watcher task from .idea/watcherTasks.xml
for autotests or codecept run