top | item 38540178

Loco. The one-person framework for Rust for side-projects and startups

89 points| ryandotsmith | 2 years ago |loco.rs

23 comments

order
[+] chubs|2 years ago|reply
I love how open this is about following Rails' ideas, in that one simple statement it really helps explain how this will work.
[+] jondot|2 years ago|reply
Author here. Thanks! I think Rails is still great these days. If someone can afford doing Ruby, they should definitely stick to Rails. However if you're into Rust, this is the best I could do that is as similar to Rails but can preserve some of Rust's strictness
[+] lumost|2 years ago|reply
Pretty great! Quick q for you when you update the docs. How does front end rendering work? Much of rust is deep into wasm - are you following that approach? or aiming for pure ssr of templates?
[+] pas|2 years ago|reply
it seems JSON only so far
[+] jmarchello|2 years ago|reply
I love that the idea of the one-person framework is spreading to other languages and ecosystems. I personally love rails AND Ruby and will stick with them. But there’s always more room for great frameworks like it and they can all be better by learning from one another. Hotwire was heavily inspired by Phoenix, for example.
[+] aetherspawn|2 years ago|reply
Looks good, couldn't find any examples of how to render pages in the docs though (SSR or otherwise).
[+] jkmcf|2 years ago|reply
Very cool!

I love how you've implemented models, particularly generating the entity from the database. I did something similar with PHP 20 years ago, but abandoned it when Rails came around.

[+] jondot|2 years ago|reply
Thanks! We much prefer to have had Rails' activerecord, but activerecord has hundreds of person-years (maybe thousands?). So what we found was the best for the current lifespan of Rust and its ORM ecosystem
[+] xrd|2 years ago|reply
How do you use front end (JavaScript) code with this as a backend? Or, does this somehow build wasm components that can be used client side?
[+] perryizgr8|2 years ago|reply
Looks cool, hope to use this or something else like this in the future. Is there anything like this but for web frontend?
[+] CraftThatBlock|2 years ago|reply
Interesting. Is the part to render HTML in the browser coming, or is this API-only?
[+] beatthatflight|2 years ago|reply
For a python developer, what would this be the 'equivalent' of? Flask?
[+] tomca32|2 years ago|reply
Well it wants to be like Rails so the Python equivalent is probably Django