During development, the cms offers a handy feature: Resetting all data back to a defined initial state.
You execute a complete reset by calling the /reset route:
This feature is turned off by default, to enable during development, enable the reset route in your project's application.conf:
cms.enableResetRoute = true
Important: Of course you need to make absolutely sure that this feature is turned off in production environments. We recommend using a un-versioned, local local.conf file which is included in the project's main application.conf, and to set the reset option there.
Calling the reset route will
You can and should extend these methods in your bootstrap subclass, and reset / re-add your own data.