AstonJ

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?

Showing Posts 16 to 7

popo63301

popo63301

Okay, thank you ! :smiley:

danschultzer

danschultzer

Pow Core Team

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-schema and then use the generated code.

popo63301

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

danschultzer

Pow Core Team

It’s pretty much all in this one mix task: mix phx.gen.html — Phoenix v1.8.8

Run with --no-context and --no-schema if 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

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

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

danschultzer

Pow Core Team

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

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

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

AstonJ OP

Currently the two most downloaded are:

Ex Admin - An Elixir Phoenix Auto Administration Package.
torch - Rapid admin generator for Phoenix

Full list here.

Where Next? Top

Trending in Discussions Top

AstonJ
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...
2977 94592 917
New
cblavier
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
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
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
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New

Other Trending Topics Top

JesseHerrick
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
marciok
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews