SPRA exposes your Postgres database through a nice React-Admin UI
- Add an AbstractModule that provides a DataExplorerSettings to your PlayFramework application, for example:
classDataExplorerModuleextendsAbstractModule {
@Provides()
defdataExplorerSettings:DataExplorerSettings=DataExplorerSettings(settings)
valsettings=List(
TableSettings(
tableName ="users",
primaryKeyField ="user_id",
hiddenColumns =List("password", "email"),
nonEditableColumns =List("user_id", "email", "created_at", "verified_on", "name"),
canBeDeleted =false,
filterableColumns =List("name", "last_name")
)
)
} - Add the
AppRouterroutes to yourroutesfile:
->/ net.wiringbits.spra.admin.AppRouter- Run the PlayFramework application
- Run
sbt spra-devto start the SPRA web