Report
Hello,
Do you use any framework to generate a simple CRUD?
I have been using golang in most of my projects lately but it takes too much time to write some boilerplate code.
What do you use to generate the boilerplate code of your project?
I'm a big fan of using what you know already.
If you don't want to create routes, handlers, and db stuff, Why don't you use go-swagger to generate your rest API, and Gorm for your data layer on top of MySQL or PostgreSQL?
I assume the most given advice which I totally support is "use whatever you feel comfortable with".
Let's say you got 1-2 days for this basic CRUD application - I think Django/RoR will beat the alternatives by far since they require less boilerplate code by the developer.
Lately I'm quite happy to write some boilerplate code - because this is code I know what it does and can easily add some exceptions when needed. This was the main reason why I moved away from Django because it feels too messy when you need to do things beyond "simple crud" like having a lot of dynamic in your data structure.
To be honest, still not a hundred percent happy with my current main stack (Nestjs/Nuxt) because it feels like you have to take care of too many things before you think about implementing any business logic.
For me it seems like node frameworks are mostly layer specific, which has great benefits but also comes with additional traction a "fullstack framework" doesn't have.
If you like Go nonetheless, I can really recommend https://gobuffalo.io/en/
This should be exactly what you're missing.
Rails on heroku behind cloudflare is great. If you need go perf for some endpoints just proxy with a cloudflare rule. If you need universal react, checkout react_on_rails. Redis also is great for caching or complex algorithms and data structures. Either vanilla rails or react_on_rails both have great project generators.
This is the perfect use-case for Hasura. Hasura will automatically generate a GraphQL API with CRUD capabilities for you based on a PostgreSQL database.
If you want to test it out in 45 seconds you can try my service at Nhost.
Definitely Next.js and try Supercharge (http://supercharge.dev/)! I launched Supercharge as a CRUD boilerplate integrated with Next.js, Firebase (Authentication + Firestore), Bulma, Google Analytics etc.! Check out http://supercharge.dev/! You will be up and running in minutes :)
I enjoy next js personally. You can use next with the swr library provided by the makers of next to make fetch requests and perform CRUD operations.
I have an in depth explanation of how I'm doing so here:
https://levelup.gitconnected.com/using-crud-operations-with-react-swr-for-mutating-rest-api-cache-3e0d01774aed
Django rest framework back end with an angularjs front using datatables.js, ive an excel vba script that auto generates the code files depending on the db model fields and relations.
I recommend you take a look at using Ruby on Rails with Active Admin. AA makes it dead-easy to build CRUDs and there are some great themes you could use.
I am working on a series of tutorials on using Rails with Active Admin to build a simple CRM so you might find this useful when you think about which framework to pick https://medium.com/modern-rails/building-a-modern-crm-in-ruby-on-rails-part-1-3b62f7b4dc7d
If you end up with having to choose between Ruby on Rails and Python's Django, I also wrote this piece doing an in-depth comparison of the two: https://medium.com/better-programming/ruby-on-rails-vs-django-in-2020-and-beyond-29e6b350ed42
I use nestjs https://nestjs.com/ with this microframework https://github.com/nestjsx/crud
You define your entities, plug this into the controllers you want to be CRUD and boom all the methods, pagination etc. are done for you.
Then for non-CRUD operations you just don't inject that library in the controller and it's a normal nestjs controller.
You can get up and running with the nexjs cli really quickly and the docs are really good.
It's hard to beat Hasura both in terms of speed of development and performance for putting together CRUD backends.
What about something like https://supabase.io/
Supabase looks nice as well. Also built on postgres and other open source components.
If this is for internal CRUD opperations, I would highly recommend Retool → retool.com
You can stand up CRUD in about an hour and then you can harden with a legit BE as needed.
I feel bad sockpuppeting here, but it seems important to point out that you can stand up a new Rails project and generate a CRUD UI without writing any code in under 5 minutes. That's cached and ready to deploy to Heroku and with a rough but functional JSON API built in.
You could add users, permissions, pagination, and an auto-generating admin in another 5, mostly by importing gems.
Mind you, all of it will be ugly AF without styling, but that's not really the point.
I just can't fathom blocking off an hour to build a CRUD site, and it seems possible you might not know it doesn't have to be this way. I'm confident that a Django developer could experience similar results, too.
I've been using nextjs for https://flurly.com, and it is AMAZING. Couldn't recommend it more
Next.js is great but it's a frontend framework. Next.js does not automatically generate CRUD APIs for you tho.
I don’t have much experience with full-blown backends like Django but for me Firebase seems to be the perfect all-in-one solution for quick and simple stuff. Auth, database, hosting, functions - all from the same API. I can focus entirely on the Frontend which is super important if you are a solo dev and/or just trying to come up with a quick MVP.
Rails.
But mostly, use what you know already.
I've been in your shoes a little while ago so I started building https://stackprint.io, a web platform to quickly build REST APIs and actually launched it on Product Hunt a few days ago. Could be something for you :)
Try Backendless or Xano.