I'm working on an assignment to create a web application using Next.js, AdonisJS, and Inertia, but I have no prior experience with any JavaScript frameworks. I've been advised that it's not feasible to use all three together, and that I should choose either Next.js with AdonisJS or Adonis with Inertia and React. I'm looking for some guidance on what my best course of action is here.
3 Answers
It really depends on what kind of application you're aiming to build. If it's something like a dashboard that doesn't need to be indexed by search engines, you might be better off just using React with Vite along with either AdonisJS or another backend solution. But, if SEO is important, then you’d want to really look into using Next.js for server-side rendering. Both frameworks have their advantages, but you should go with whichever fits your project goals better!
You're right that combining Next.js and AdonisJS isn't the best idea since they're built for different purposes. Next.js is more for serverless applications while AdonisJS follows an MVC approach, usually requiring a server setup. If I were you, I’d lean towards using Next.js instead of jamming all three together. You might find it a lot easier, especially since Next.js has tons of documentation available which is great for beginners!
Yeah, but don't forget that if you need server capabilities, you might actually consider benefits of AdonisJS too. It’s really about what your project needs.
If you’re planning on diving into backend development and learning a lot about how servers work, AdonisJS is a great choice as it covers so many concepts applicable across other languages. But if you're mainly looking to get a job in frontend development, Next.js is currently in high demand and would probably serve you better in the job market. Just think about your career goals when deciding!
Totally agree! Next.js is much simpler to grasp for someone starting out. The resources available make learning way easier!