Files
symfony-flex-recipes/api-platform/admin-pack/1.0/post-install.txt
T

17 lines
713 B
Plaintext

<bg=blue;fg=white> </>
<bg=blue;fg=white> To finish the install </>
<bg=blue;fg=white> </>
* Your admin is almost ready:
1. Install the JavaScript dependencies by running <comment>yarn add @api-platform/admin @babel/preset-react</comment>
2. Edit <comment>webpack.config.js</comment> and <info>uncomment</info> the following lines:
Encore
// ...
.enableReactPreset()
.addEntry('admin', './assets/js/admin.js')
* Mark entities you want in the admin with the <comment>@ApiResource</comment> annotation, it appears in the admin!
* Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>