3 ms·
Generate Elixir/Phoenix Boilerplate
- weatherlight 5y agoWould be cool if react or vue could be options as well and LiveView
- void_mint 5y agoI thought the purpose of LiveView was to remove the need for JS frameworks?
- dnautics 5y agoNo, the purpose of live view is to act as a "smart server-side caching layer" so you don't throw everything away and start from scratch each time you hit the server.
- void_mint 5y agoAh, TIL. I have no experience other than being a passive fan. Thanks!
- wrren 5y agoThat’s really not what it is. Live View is a replacement for most of what you can do with JS, but isn’t great for everything. The browser connects to the server via web socket and a process is started to manage the DOM state. Diffs are sent to the browser in response to various events such as clicks on elements or PubSub broadcasts.
- dnautics 5y agoyou are describing what it is, but not what the bigger point is. Here it is, from Chris McCord: https://www.youtube.com/watch?v=XhNv1ikZNLs&list=PLqj39LCvnOWYTNs1n3ZNMSNO3Svv_XweT&t=2450s https://www.youtube.com/watch?v=XhNv1ikZNLs&list=PLqj39LCvnO...
- innocentoldguy 5y agoWhen you use a front-end framework like React, there are UI changes you can make that must hit the server for information and other UI changes that can be done locally without interacting with the server. LiveView really shines in cases where you’re hitting the server anyway, but JavaScript can be more efficient for client-side-only changes. So, if you want, you can combine LiveView and JavaScript to optimize your site for both types of UI changes. You don’t have to. You can use LiveView exclusively, but the choice to combine LiveView and JavaScript is there if you want it. Personally, I think React is a bloated choice if you’re going to use both LiveView and JavaScript. In cases where I use both, I typically use a small framework like AlpineJS or vanilla JavaScript for client-side-only changes.
- void_mint 5y ago> Personally, I think React is a bloated choice if you’re going to use both LiveView and JavaScript. In cases where I use both, I typically use a small framework like AlpineJS or vanilla JavaScript for client-side-only changes. Good to know! That's probably why this boilerplate generator only has a handful of (what I think are) smaller JS libs and not Vue/React?
- pdimitar 5y agoYep. What your parent poster said is the accepted common wisdom in the Elixir Phoenix circles.
- MrPigbot 5y agoI have really wanted to make something like this for nestjs, but I haven't gotten around to it yet
- antupis 5y agoDo it world needs more of these it is not 1 or 2 times when I have even started side project and almost all ways stop that annoying lets create app authentication,email sending, landing page, good style phase and don't even get to business logic step.
- zorr 5y agoThis reminds me of start.spring.io in JVM-land.
- dom111 5y agoOh this is nice, but I feel I'd prefer something I could run locally? I've played around with setting up a docker-compose.yml with some Makefile commands to set up a fresh project, but something like this on top would make that process much easier...
- weatherlight 5y agoI've generated a few of these and they are pretty good. It's a one stop SaaS shop of functionality.
- peanut_worm 5y agoSeems weird that a CSS framework is required