Skip to content

SPRA exposes your Postgres database through a nice React-Admin UI

License

Notifications You must be signed in to change notification settings

Antonio171003/scala-postgres-react-admin

This branch is 3 commits ahead of, 2 commits behind wiringbits/scala-postgres-react-admin:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d60d802 · Sep 6, 2024

History

23 Commits
Sep 5, 2024
Aug 12, 2023
Sep 28, 2023
Sep 6, 2024
Sep 5, 2024
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023
Aug 12, 2023
Feb 11, 2023
Jul 13, 2023
Sep 4, 2024

Repository files navigation

scala-postgres-react-admin

SPRA exposes your Postgres database through a nice React-Admin UI

How to run

  • Add an AbstractModule that provides a DataExplorerSettings to your PlayFramework application, for example:
class DataExplorerModule extends AbstractModule {

  @Provides()
  def dataExplorerSettings: DataExplorerSettings = DataExplorerSettings(settings)

  val settings = 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 AppRouter routes to your routes file:
-> / net.wiringbits.spra.admin.AppRouter
  • Run the PlayFramework application
  • Run sbt spra-dev to start the SPRA web

About

SPRA exposes your Postgres database through a nice React-Admin UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 99.4%
  • Other 0.6%