4 ms·
Ask HN: What is the best back end framework in 2022?
Hey HN,
I want to build and ship a side project really quick. I'm wondering what is the best framework to build a backend fast in 2022?
Second I also want to know what is the best framework to build a backend in Python?
- mikece 4y agoDepends what the purpose is. Any number of frameworks will work; sounds like you already limited it to Python, so Django or Flask seems logical.
- deidei 4y agoJust want to build a REST API really fast, I'm going to be building the frontend in React. I'm not really limited to Python but prefer it a bit over the others, I'd love to know about frameworks in other languages too.
- sharmi 4y agoDjango gives basic web framework. Django rest framework gives rest api. Pl use django spectacular for openapi compatible rest api. Will make feont end code gen easier.
- sharmi 4y agoOops.. I intended to answer the original post and somehow answered @deidei. Consequences of trying to type on a phone I guess.. And that made the tone come out all wrong.
- DawnQFunk2 4y agoIf your asking this question the answer is Django. There’s nothing else left that’s really being actively developed in the open source space and nobody wants to admit it.
- christophilus 4y agoRails?
- cpach 4y agoFlask?
- deidei 4y agoI'm probably going to go with Django but I still want to know what people think about FastAPI?
- glaucon 4y agoDjango/Flask will have 100x as many resources to help you than FastAPI will, given the nature of your question that's what your decision should be based on. If you are interested in something outside of Python then Ruby on Rails also has resources in depth.
- rozenmd 4y agoIn order of shipping speed: - The one you already know - The one closest to the one you already know - The new hotness everyone is talking about
- likortera 4y agoI kind of disagree on the last one, or at least there is a huge step from the second one to it. I've used next.js for a project which I think qualifies as the new hotness. Once I had to add translations, authentication and do some authorization checks, and make all of this work with SSR, it became a hell of a nightmare and I regretted it so much.
- rozenmd 4y agoOh, the list is definitely not linear. My first side-project I spent several days trying to figure out how to use mongodb with Node, only to give up and just use what I already knew (Django + postgres). These days I build everything with Node, but I learned how to use it at work first.
- speedgoose 4y agoHasura plus fastapi perhaps?
- deleted 4y ago[deleted]
- tough 4y agoNextJS
- muzani 4y agoWhat exactly are you doing with your back end? If it's database operations, you can try Parse Server. We use it frequently for hackathons. I wrote a tutorial on it: https://smuzani.medium.com/setting-up-a-mobile-backend-server-in-half-an-hour-f1b13e88092c https://smuzani.medium.com/setting-up-a-mobile-backend-serve... If you want to do stuff like run code on the back end, then you might want another.
- likortera 4y agoFor me the quickest and most robust way to build anything web related, as a single dev or as a small team is Laravel + Unpoly + tailwind. That's a real full stack: from authentication, translations, background jobs, componetized views, ajax updates and form submissions, etc, etc.