Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: What's the quickest method/framework to set up a basic CRUD app?
29 points by mrsmee89 on July 15, 2021 | hide | past | favorite | 24 comments
All I need is users, ability to create text+image posts. Is it still rails?


I hear you because I needed the same, with absolutely no experience in web apps. Please listen to other comments first. If this does not help: I used github.com/tiangolo/full-stack-fastapi-postgresql - it is a Docker-Stack that can be deployed through Gitlab CI on Docker Swarm. Not that I had any experience in these systems - but it directly worked and I had a Progressive Web App (PWA) with CRUD, SSL certs, Queue, Reverse Proxy and everything with it in one day. This thing still runs after 2 years.


I may have to look into this. I was already feeling pretty good that I was able to send http requests to my app. But I guess this solves the “how to connect this to the world” side of it? I haven’t looked at it but I assume you still add your logic right?


Yes, for the actual CRUD there exists a template, but _what_ you want to create, read, update and delete must be defined first (e.g. text and images). You would need to add display-syntax, too - to present what is read to users.

If you just need to display text+image posts, have you thought about a static site generator? E.g. Hugo, Mkdocs, Jekyll.. you can hook these up through Gitlab/Github Continuous Integration and have it automatically serve site updates on new git commits.


Im not OP. I’m building a searchable library of DNA similar to genbank. I do need to store text and images but not in a blog way


There are many themes. Mkdocs material is a static site generator that is very flexible, more oriented towards tech documentation. Most Jekyll/Hugo themes are for blogs, but it is not limited to this. It can be combined with search. If it requires a database, however, a static site generator appears the wrong direction..


If you're familiar with Rails, stick with what you know. Often that will be faster than learning a new tool. If you want to diverge and learn something new, you can deploy a full stack application using React/Next.js on the front end and MySQL/PostgreSQL on the backend is a few minutes using Vercel.

https://vercel.com/integrations/planetscale

https://vercel.com/integrations/supabase


This is super cool! thanks for sharing!


The quickest is what you know.

I always recommend Rails or Laravel.

Both are very similar.

I think Laravel has the better community, better packages(gems) now, and is faster to learn, get up to speed.

Check out Laracasts.com.

Also check out forge.laravel.com it's an app for spinning up and deploying to servers.

And there is valet for local development.

Amazing ecosystem and community.

Good luck with your app.


This is super helpful. thank you


I would say Django, but I also haven't used Rails. I second the fastest framework is the one you're most familiar with.


I would definitely go with Budibase.

You could build a responsive CRUD app in a few minutes.

They also support a number of data sources (PG, MySql, Mongo, Couch) and have their own DB.

Also, they're open source: https://github.com/Budibase/budibase


Postgres + Hasura GraphQl backend. This is magic. My prototyping went from 3 days to 1.


check out the below no-code tools. super easy to create the functionality you've described

- https://saltcorn.com/

- https://www.budibase.com/


I recommend you Blitz.js written in React and Next.js for this purpose, there is even user registration and login ready, so you don't have to worry about that. Blitz.js is a Fullstack Freamwork inspired by Ruby on Rails.

https://blitzjs.com

New Blitz apps come with all the boring stuff already set up for you! Like ESLint, Prettier, Jest, user sign up, log in, and password reset.


I love JavaScript and it is what I do full time, but I think still *nothing* beats Rails or Django for this.

The problem with Blitz, and similar frameworks is that they are not stable enough, in the sense that being attached to the node ecosystem means whatever you build today will be outdated by next year.

I find nowadays Rails with all the hotwire stuff or Django and something like Unpoly is unbeatable regarding productivity for standard CRUD apps.


The fastest is the framework you already know.

If you don't know any frameworks, no code away.



Bubble is pretty good at it. You can't migrate authenticated users from it because of how password hashing works, but other data is fine.


It is interesting to note that all the replies (so far) are for web based applications. We seem to have given up on the desktop.


The op is asking for a CRUD app where users could post/read text & picture.

I, too, miss great desktop apps, but in this precise scenario, what would be the point of making one ?


Rails is definitely too low level. Look into no- or low- code solutions.


Finding the right no-code solution will take more time than doing everything in Rails though.


Haven’t tried Flask yet but it looks interesting.


How is this different from a WordPress blog?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: