4 ms·
What's a Laravel equivalent in JS so we can stick with 1 language instead of using PHP?
by KaoruAoiShiho 2y ago
What's a Laravel equivalent in JS so we can stick with 1 language instead of using PHP?
- mgkimsal 2y agoWhat if there isn't one?
- jitl 2y agoRedwoodjs seems active, Sails seems less active, Adonisjs I’ve heard of. The lack of a clear leader Rails clone in NodeJS land is probably the ecosystem’s biggest weakness. The downstream effect is theres a bunch of typical libraries/clients are just… MIA in the node ecosystem. Like, there’s no production grade Memcached client for node. ¯\_(ツ)_/¯ We had to fork one & heavily patch it for Notion.
- miohtama 2y agoOne (not only) of the problem is that you cannot do it in JavaScript very well due to poor underlying support for types. You neded TypeScript to have the equicalent of ActiveRecord or Django model.
- jitl 2y agoThis doesn’t follow because both Django and Rails evolved in languages without a type checking compiler. Rails is super dynamic in ways that would make Typescript type checker kind of sad.
- ncphillips 2y agoThere isn't one. There's been a couple attempts but they just don't hit the mark like Rails or Laravel do. Honestly, the upside of 1 language is not that high. Don't be afraid of PHP, it isn't the same language it was 15 years ago. I've been programming JS for 10 years but only been using PHP for a year, it's weird but it's got some nice parts too.
- banashark 2y agoAdonisjs, which is explicitly stated as taking major influence from laravel: https://adonisjs.com/ https://adonisjs.com/
- KaoruAoiShiho 2y agoDoesn't have the featureset or community unfortunately