You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,14 +55,16 @@ You need to adjust `config/components-dev.local.php` to configure your database
55
55
56
56
After that, run `make start` and `make stop` to control the PHP webservers for API and backend.
57
57
58
+
You may use `XDEBUGW=1` to enable xdebug for the webserver, e.g. `make XDEBUGW=1 start`.
59
+
58
60
You can now continue with [generating code](#generate-code).
59
61
60
62
### Using Docker
61
63
62
64
You need [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/) installed.
63
65
For the easiest way you need GNU make, then run:
64
66
65
-
make docker-up
67
+
make start-docker
66
68
67
69
This uses `docker-compose` to start docker containers for the API and the backend including a database.
68
70
@@ -76,8 +78,6 @@ You can now continue with [generating code](#generate-code).
76
78
77
79
## Generate Code <spanid="generate-code"></span>
78
80
79
-
Note: If OpenAPI spec file is present locally on the file system, then for UNIX bases OS, `openApiPath` must start with `/` and should provide aboslute path instead of relative path from the current directory. Example: `/home/user/documents/MyProjectOpenAPISpec.yml`
80
-
81
81
### Console
82
82
83
83
> Tip: If you use Docker, run `make cli` before running any of these commands.
@@ -87,6 +87,9 @@ spec file. The following example will generate API code for the [OpenAPI petstor
> Note: If the OpenAPI spec file is present locally on the file system, then `openApiPath` must be specified as an absolute path, relative paths will not work correctly.
91
+
> On UNIX based OS it must start with `/`. Example: `/home/user/documents/MyProjectOpenAPISpec.yml`
92
+
90
93
Run `./yii gii/api --help` for a list of configuration options. You may also adjust the configuration in `config/gii-generators.php`.
0 commit comments