# Admin-Center 2.0

The admin-center add-on serves as endpoint for the 'Add-on & Subscription Center' placed in i-doit sfm.

## Build

Build frontend assets by executing `./build-release.sh --prod`. This script will install all node dependencies and build all resources.

## Development

The PHP backend can be changed as usual. The frontend javascript assets require running node.
Therefore go to `./js/` and run `npm run build`. Do not forget to install node dependencies before via `npm i`.

## Linked i-doit sfm

For development you should/want to use another i-doit sfm instance. This instance can be local or the ones from testing or staging.
To achieve this you can simply open `src/classes/modules/synetics_admin/src/Controller/IndexController.php` and adjust static variable `$SFM_BASE_URL`.
