mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
13 lines
576 B
Plaintext
13 lines
576 B
Plaintext
* Your admin is almost ready:
|
|
1. Install the JavaScript dependencies by running <comment>npm 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>
|