https://github.com/kakadu-dev/yii2-microservice-template
Yii2 Inverted JSON Microservice Template
https://github.com/kakadu-dev/yii2-microservice-template
ijson inverted json microservice template yii2
Last synced: about 1 month ago
JSON representation
Yii2 Inverted JSON Microservice Template
- Host: GitHub
- URL: https://github.com/kakadu-dev/yii2-microservice-template
- Owner: kakadu-dev
- License: bsd-3-clause
- Created: 2020-05-12T08:06:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T12:01:20.000Z (almost 6 years ago)
- Last Synced: 2025-07-21T04:22:25.457Z (11 months ago)
- Topics: ijson, inverted, json, microservice, template, yii2
- Language: PHP
- Size: 81.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Yii 2 Inverted JSON Microservice template
---
ENVIRONMENT:
- `IJSON` - Invert json host and port (with protocol)
- `PROJECT_ALIAS` - megofon, easysoup, etc..
**Run:**
- Get code:
- `git clone git@github.com: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...
- Run docker container `ijson` and `mysql` in `docker-compose.yml`
```bash
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```