6 ms·
Is nextjs the modern rails?
by Scarbutt 4y ago
Is nextjs the modern rails?
- reducesuffering 4y agoYes, it really is. Startups these days aren't using traditional rails anymore as much as either full-stack typescript w/ React (a la Next.js) or Next to make SPA and hitting a more full-featured REST API. There is currently a lot of cutting edge engineering focused on the Typescript ecosystem (Vercel, Cloudflare, Deno, etc) vastly outpacing things being done around Rails, Django, PHP, etc.
- o_m 4y agoKinda, but not really. There are still lots of parts you'll have to implement yourself if you want to create a CRUD app. The mainly focus on the frontend part with the help from the backend. Combine next.js with https://blitzjs.com/ https://blitzjs.com/ and you'll have something that looks like rails.
- nullandvoid 4y agoTo throw another in the ring, I recently stumbled on https://github.com/t3-oss/create-t3-app https://github.com/t3-oss/create-t3-app. Lots of buzzword tech in there, but the setup looks very interesting. Looks like blitz is tRPC + next auth?
- no1youknowz 4y ago> Looks like blitz is tRPC + next auth? From what I understand Blitz is their own implementation of tRPC, their own Auth system, Prisma and Typescript support. Blitz is also more of a toolkit that wraps around NextJS currently, but later on Remix, Svelte and Vue. In future (probably in '23 and post 1.0) some things that may be coming are: - backend functionality ala NestJS - form component library - permissions (rbac) library - file upload library - and a bunch of other stuff I'm forgetting right now.
- flybayer 4y agoBlitz actually came first, so trpc is an alternative implementation of RPC. Blitz auth was developed at the same time as next auth, and takes a more imperative approach which allows you to build more custom auth flows.
- wtf242 4y agoNo. It's been awhile since I played around with it, but it's a front end framework that depends on react, that's really good at generating static pages