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

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
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
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
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
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

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
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