AstonJ
I alway use something like ActiveAdmin or RailsAdmin when quickly putting together an app (even if initially) with Rails - they are just so convenient and help you concentrate on the app itself.
What do you do or use with Phoenix? Prefer to roll your own or use something like Ex Admin?
Trending in Discussions
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
New
Hey there,
It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Quite interesting article Google brought me. Didn’t find any mentions about it here.
What do you think in general? Would you use togethe...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
:warning: Security advisory: Decimal DoS vulnerability
A vulnerability has been published for decimal where very large exponents can cau...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security











Showing Posts 16 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
popo63301
Okay, thank you !
danschultzer
If the PostController is generated with the mix task, yeah. If not, then I would first generate the controllers/context with e.g.
mix phx.gen.html BlogAdmin Post blog_posts title:string content:text --no-schemaand then use the generated code.popo63301
Okay ! If you want to make the Admin panel for a context Blog and a schema Post, what would be in the Controller of the admin/Post ? Will it be a plain copy of the basic PostController?
danschultzer
It’s pretty much all in this one mix task: mix phx.gen.html — Phoenix v1.8.8
Run with
--no-contextand--no-schemaif you already have the context and schema. The mix tasks generates all you need for the admin interface.You can also generate an admin context module for list/get/create/update methods. The generator will set it up so you can see how you interact with your context app from your controllers.
popo63301
Hi @danschultzer . Can you share more details on how you generated your stuff? Especially, how do you interact with the contexts made in your main app?
brightball
I’ll check it out. I thought that ExAdmin was being retired for Talon. Haven’t tried either, just remember following the projects.
danschultzer
I tried both Torch and ExAdmin but didn’t like either so I built the admin interface using the Phoenix generators. It’s been really easy to work with, and so far it’s felt like the better option to opt for. This was done in an umbrella app setup with multiple Phoenix apps.
You can slap on a Bootstrap admin template, add a user authentication library, and have it up and running in no time.
tmbb
I’m working on an admin backend inspired by torch and ex_admin. The core component is a library to generate ecto queries dynamically from phoenix params (also written by me) which I haven’t released yet. I can’t guarantee the API stability of this library yet, though…
If people are interested in trying it I might publish it (as super alpha software) . It’s already quite functional, actually.
It makes heavy use of generators, so it’s closer to torch than ex_admin. IMO, the main advantage over torch is that the generated code (especially the templates) are a bit cleaner and easier to extend, and I think it supports a little more features.
kochetkov_av
As i can see ExAdmin is not maintained any more?
Torch last commit was 4 month ago. And in general it doesn’t look like complex solution.
I’m looking forward to use Phoenix in my next project, but admin panel is really needed.
What to use, any advice?
AstonJ
Currently the two most downloaded are:
Ex Admin - An Elixir Phoenix Auto Administration Package.
torch - Rapid admin generator for Phoenix
Full list here.