Setup of Noter in CakePHP, MySQL and Docker (and other tools) - notes, commands, snippets go here.
Direct branch-URL - https://github.com/konnector-dev/noter/tree/cakephp-mysql
Repo URL - https://github.com/konnector-dev/noter
Branch - cakephp-mysql
Missed commands in the first version:
- git clone git@github.com:konnector-dev/noter.git
- cd noter
- git checkout cakephp-mysql
- docker-compose run noter composer install -n --prefer-dist
- docker-compose run noter bin/cake migrations migrate
- docker-compose run noter bin/cake migrations seed
- docker-compose up --build
As of here, the table is created, now we run "bake" command to generate Controller, Model, Entity, View(templates) for users:
bin/cake bake all users
If "users" is omitted, then a prompt would show up asking for selecting the table/entity to be baked.
Docker tip (again): Prefix the command with
docker-compose run noter
, and remember - omitting "users" would not prompt anything, the command will not be executed (need to find the right flag to wait for prompt, and for now use the full command, including "users" at the end, specifying the table, hence not having the need for any prompt)