Replies: 1 comment
-
Similarly, I don't understand why everything is managed under the frontend part; there is no access to services from the side of Wails, and it’s impossible to integrate services with each other. Essentially, the main connection is the frontend and its interface formed by the services. This is strange and forces the developer to describe explicit backend logic in the frontend. There's a lack of functionality for searching or utilizing connected services. I add them, and then they get lost in the sea of frontend mappings. In reality, Wails adds an abstraction layer in the form of an ephemeral container with hooks for starting or stopping, but offers nothing to make working with this container any more convenient. I would prefer to avoid using JS when working with the application and instead use htmx with HTML rendering on the server side. From my development experience with version 2, I've realized that confining functionality to the frontend is critically inconvenient. It works for simple applications serving as interfaces to services, but applications requiring complex logic become problematic for developers. A series of unnecessary abstractions appear, and a lot of JavaScript code is written just to create loops between the frontend and backend. Hence my question: how can I use Wails with a framework built using the dependency container Uber FX to avoid maintaining two separate codebases for the same functionality? |
Beta Was this translation helpful? Give feedback.
-
Hi, @leaanthony !
!! I`m using WAILS v3 !!
I'm trying to organize the code of my application according to my ecosystem, where I use Uber FX for building the application logic. I have my own framework in which I maintain a set of libraries and modules for my stack. However, I've discovered that Wails does not work with Uber FX, or perhaps it can, but I don't understand how to structure it so that it launches properly.
In my research, I was able to successfully launch child processes for the web server and other components without issue, but I couldn't get the application and its window to start, although according to the logs they seem to begin initializing.
I would greatly appreciate help with this, as I believe many people would value the approach of writing an application using dependency injection containers.
Beta Was this translation helpful? Give feedback.
All reactions