RPC 2.0 API MICROSERVICE BASED ON IJSON
IJSON_HOST
- Invert json host and port (with protocol). Default:http://localhost:8001
PROJECT_ALIAS
- panel, apple, etc..APP_ENV
- dev, prod.PANEL_ALIAS
- Alias for control-panel. Default:panel
CONTROL_PANEL_DISABLE
- Disable control panel microservice config obtain. Default: noAUTHORIZATION_DISABLE
- Disable authorization microservice import rules. Default: yesDATABASE_SEEDER_DISABLE
- Disable auto seeding data. Default: noMYSQL_HOST
- Mysql host.MYSQL_PORT
- Mysql port.MYSQL_DATABASE
- Mysql database.MYSQL_USER
- Mysql user.MYSQL_PASSWORD
- Mysql password.
- Get code:
-
Modify microservice config see
config/app.php
or put environments in .env -
Run docker container
ijson
andmysql
indocker-compose.yml
docker-compose run mysql docker-compose run ijson
or
docker-compose up
-
Install dependencies
composer install
-
Create configuration:
./bin/console microservice:configure
or for manual configuration add the
manual
key./bin/console microservice:configure manual
-
Create database
php artisan migrations:db
-
Run microservice
php artisan microservice:start
-
See
scratches
folder for make requests
-
- Generate docs
composer run-script docs
- Open
apidoc-generated/index.html
in root dir