Sven

Sven

Hello Everybody,

I am in “love with Phoenix Framework”. After the first bloody steps, I feel me comfortable and see many many advantages in the use of this beautiful framework. Now I think to migrate/realize an another project of mine with Phoenix/Elixir. BUT! I also love w2ui (https://w2ui.com/web/). It is an also beautiful framework but renders most of the things in Javascript, which means, it uses a different approach. My problem is not, that I do not have no idea how to integrate that framework, but the question is, does it makes sense? I miss a UI framework, which can display widgets (like w2ui). Bootstrap, Tailwind, all these don’t fullfill my needs. What is your opinion? Or does anybody know a good AND OPEN SOURCE UI Framework, which works like w2ui with Widgets and uses the advantages of Phoenix? Or is it worth to (or does it make sense) to migrate some parts of w2ui to Phoenix, so that the server renders my pages?

Thank you very much!

regards,
Sven

Showing Posts 1 to 6

cmo

cmo

You can use Phoenix as a JSON API, which is one way to use it with React/Vue/w2ui etc.

lud

lud

It does absolutely make sense. I use SvelteJs to display server data that is sent through a Phoenix Channel but you can also use Phoenix to provide a REST API or a GraphQL API.

cvkmohan

cvkmohan

@Sven, many people do that. (Integrating external JS framework into Phoenix.) As of now, in the idiomatic Phoenix way, there are no component libraries that can compete with w2UI or smelte or for that matter any JS web UI frameworks.
However, petalframework/petal_components: Phoenix Live View Components (github.com) is making a serious attempt to fill that gap in the phoenix world. If the components provided do fill your needs to certain level - I suggest, you start in those lines. Mainly because, one framework less is always one headache less. Further, you can write your code mostly in typical Phoenix way.

kartheek

kartheek

You can use w2ui with phoenix - normal phoenix controllers with w2ui and some json services to fetch data for w2ui. If you are comfortable with w2ui and can build rapidly - go with it.

I had supported a team who used OJET with phoenix.

All you have to do is to fit in the phoenix life cycle.

Phoenix framework as I see it has different parts to it:

  1. Ecto: ORM kind of thing for talking to database with help of changesets
  2. phoenix_html: to generate html and forms in templating like EEx, Heex
  3. Sockets & Channels: Realtime communication using websockets.
  4. Phoenix.js : javascript library to connect to phoenix sockets and channels.
  5. Controllers and Views: Phoenix views (some call it dead views). It’s the plain old server side rendering of web pages like Ruby On Rails, JSP, Django, etc.
  6. phoenix_live_view: Phoenix LiveView enables rich, real-time user experiences with server-rendered HTML. It shifts development from javascript to elixir world. You can get away with writing less javascript. It uses websockets from point 3.

Phoenix does not ship a js library like w2ui or jet,etc. It can work with these libraries as long as they fit the phoenix life cycle of Phoenix Views and Phoenix Live Views.

Except for Phoenix Live View, everything will work out of box without any issues (with w2ui). You don’t need Phoenix Live View if you are building SPA kind of pages with w2ui or Jet.

You can use 1-5 based on your requirements with w2ui and build web apps. As I see it - few Phoenix views, json services and w2ui are all you need.

Sven

Sven OP

@all

Thank you very very much for your feedback! It helps! For all of you: Have a nice day! So my decision is felt.

regards,
Sven

stefanchrobot

stefanchrobot

Have a look at Evergreen, you might like that one too.

— All posts loaded —

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
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
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
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews