Anyone know the configuration for using ExAdmin when your Repo is in a separate application?
I’ve traced my issue to the register_resource macro in ExAdmin.Register. The struct in this macro is never updated when I add my model with mix admin.gen.resource and therefore the match in ExAdmin.get_all_registered/0 fails when it tries to match on %{resource_model: _rm}. I’ve been scratching my head for hours on this, any ideas?
Example of ExAdmin working in an umbrella config (albiet with an issue):
I figured it out. You can easily set up ExAdmin in a separate application from your Repo.
In your app where ExAdmin is a dependency, you register each resource you intend to use either by using mix admin.gen.resource [YourModel] or adding a file manually to apps/[YourExAdminApp]/web/admin/. You then must add the name of that module to the config.exs file of [YourExAdminApp].