In short: I want to create a web app and check out the possible options.
The language should be compilable because I want to protect the source code. As a result, only Go, Haskell, and Rust come into question here. Go is not my taste, whereas Haskell is very fiddly (and I don't feel like all that monad stuff), especially when it comes to the front end. That's why I'm considering Rust, especially since Rust supports WASM and has a very good framework for web apps with Yew (judged at first glance). Are there any alternatives to Yew that are also worth considering?
I also need 100% interoperability with a Postgres database (a good native connector). What is recommended here and the general standard?
Since I've only created plain websites so far (html+css+php with a bit of JS in the frontend), I honestly have zero experience here. But as far as I read, the DB stuff has to take place in the backend/on the server, since no queries are possible from WASM?
Basically, the goal is that the Wepapp ends up being just a binary file that I put on the (linux) server without any additional installations (apart from the Postgres DB and a configuration file with DB credentials); and is accessible through a subdomain app.example.com (first login area, then redirection to the actual app with the functionalities/content available to the respective employee).
It would be awesome if I could actually do all of this in Rust, front and back end in the same language / from a single source.