Not just scaffolding, it's the whole house

Presets let you config generalized data management UI interface for database. It's not a scaffolding to generate source code. But provide more abstract and flexible API to enrich features along the way.

And this *presets.Builder instance is actually also a http.Handler, So that we can mount it to the http serve mux directly like this:

With r.Model(&Customer{}):

  • It setup the global layout with the left navigation menu
  • It setup the listing page with a data table
  • It add the new button to create a new record
  • It setup the editing and creating form as a right side drawer
  • It setup each row of data have a operation menu that you have edit and delete operations
  • It setup the global search box, can search the model's all string columns