4 ms·
Rails mentioned! As a long time Rails dev who has primarily worked in stacks of Rails APIs and React UIs, does One fit into this category? I'm excited about l
by jeremy_k 2y ago
Rails mentioned!
As a long time Rails dev who has primarily worked in stacks of Rails APIs and React UIs, does One fit into this category?
I'm excited about local first, but I haven't played around with any of the existing solutions because I was hoping to get my hands dirty with Zero. Thus I come from a point of ignorance. Are there any limitations? Will Zero need adapters to different frameworks or does it hook directly into your running postgres instance so the backend doesn't matter?
- nwienert 2y agoOne is like the halfway point between Next.js and Rails. Well, at least once Zero is out. It won't have all the stuff Rails has for now, just the data solution (and we have a drizzle-to-zero adapter and setup we'll be recommending as well so you get schema/migrations). So yea we want to bring the ethos of Rails to JS, but do it in a way that isn't NIH. Explained a bit more here: https://onestack.dev/docs/introduction#our-full-stack-philosophy https://onestack.dev/docs/introduction#our-full-stack-philos...
- jeremy_k 2y agoGot it. So you're aiming to be a full stack framework. Let's say I want to keep all my business logic and schema in Rails. But I want a UI for web + native, would One work in this case? It is kind of where my lack of knowledge about how Zero works is causing my confusion on all this.
- pqdbr 2y agoI'm interested in this as well. Not ready to drop Rails as the backend...
- jeremy_k 2y agoThe answer is you won't have to. I asked in the Replicache discord if there was any more public info on Zero and the creator linked to this notion document https://replicache.notion.site/Introducing-Zero-8ce1b1f184aa4a9088a9f76e1b8db003 https://replicache.notion.site/Introducing-Zero-8ce1b1f184aa... Basically Zero will run in the browser and has it's own server which will exist next your database. So you can do all your database management through Rails and there is a section about Custom Mutators where if you need to pipe data through to AR to have it run callbacks, that is possible.
- nwienert 2y agoYou definitely can, so long as you use Postgres you should be able to use Zero (as of now they have a few limits on column data-types as well). Also - One is not tied to Zero, you can use One for just about any web/native project and bring any libraries you want, we just are making it nice if you follow a certain path.