5 ms·
Ask HN: What's a batteries-included framework that's React-first?
What's the closest thing to Rails, Laravel or Django but works really well with React or Svelte like Nextjs?
Doesn't seem like it exists - why not? React/Svelte clearly won on the frontend, but nextjs leaves a lot to be desired on the full stack DX. I'm looking for something more opinionated and full-featured like the traditional frameworks but that has first class support for modern frontend.
- vimota 2y agoinertiajs.com is one interesting approach to solving this by making React work somewhat natively in Rails/Laravel/Django - are there others?
- dudboi 2y agoNextjs feels like the de facto framework. Throw on Prisma and you should be all set. When you say it leaves a lot to be desired, what specifically do you think is lacking?
- vimota 2y agoThere's a clear philosophical difference between a framework like NextJS and Rails/Django/Laravel. The former takes the approach of expecting users to integrate various third party libraries (ie. Prisma, PassportJS, ReactAdmin, etc) while the latter has it a lot of features built in as framework primitives and defaults. Some of those features: * ORM and DB migrations * Auth * Admin interface * Form handling and validation * Email sending * Background jobs Which is why you end up needing so many different SaaS templates for Nextjs that tie all these different libraries together into a pre-built package.
- aosaigh 2y ago"Convention over configuration" and it seems to be a dying philosophy unfortunately. Ember.js is probably the closest in the JavaScript world.
- hot_town 2y agoExactly. Wasp, https://wasp-lang.dev https://wasp-lang.dev, is the only framework in the React/Node/Prisma space that's taking this opinionated approach to full-stack development. For example, you get full-stack auth by just adding this to your config file: `auth.methods: { email: {}, google: {} }` Then you on-the-fly Auth UI components and all the necessary hooks
- JLCarveth 2y agoDeno's Fresh uses Preact
- vimota 2y agoDeno's Fresh is certainly a cool project! But I would say it's even further on the NextJS/bare-bones side of the spectrum.
- deleted 2y ago[deleted]
- dudus 2y agoI really like Astro and Quik. If you want to take a step further start from a template like astrowind. It's opinionated performant and works really well with react, Svelte, or any other fe framework. You can even mix and match them. But for what you are looking for you are better served by combining it with firebase or a firebase clone.
- meiraleal 2y agoIt is node.js. You compose it with the libraries you want. No fullstack NodeJS backend got enough traction to be a name the community recommend.
- hot_town 2y agohave you checked out Wasp? -- https://wasp-lang.dev https://wasp-lang.dev
- hot_town 2y agoWhat you're looking for is Wasp -- https://wasp-lang.dev https://wasp-lang.dev It's a true full-stack framework and even bills itself as a "Rails-like fullstack framework for React, NodeJS, & Prisma" It manages all the boilerplatey stuff for you like Auth, Routes, Jobs, TypeSafety, Email sending, Deployments