B
B
be9st2019-12-28 00:36:45
Backend
be9st, 2019-12-28 00:36:45

Which tool to choose for the backend?

I want to create a site for designers, which will be able to upload photos, write comments, rate photos, user authorization, etc. On the front, I prefer React. What to choose for the back, to do it quickly, without the idea of ​​​​global scaling (personal project), for a small load, and it is desirable to contact react somehow conveniently? Please describe the pros and cons of the proposed solution.
Ps anything but php

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Sviridov, 2019-12-28
@be9st

If you prefer React and don't want PHP, I would advise you to build APIs in Go (Gin/Gonic microframework) or Python (FastAPI, for example). Purely for the API, using huge monsters like Django is redundant. But at the same time, as I understand it, you don’t want to bother too much, so I will advise you to take Django in this bundle:
Why Django? Yes, for the API, it may be redundant, but it still has a lot of things that are needed and work out of the box. The same migrations, for example, ORM, sitemap, some kind of admin panel, etc. Everything is built in, you don't need to set anything up. Since you prefer React on the front, django-rest-framework will come in very handy for this.
Minuses:

  1. They say Django is slow. Well, it depends on what to compare. Python is generally slow. And anyway, for normal projects, almost everything is given from the cache, so there is not much difference.
  2. Django is not a fountain in terms of architecture, "fat models" (models into which logic is shoved into a bunch of lines of code) are just that.
  3. If there are high loads, then Django ORM will interfere with you. And if you remove the ORM from Django, then there will be much less sense in using it.

V
Vladimir Korotenko, 2019-12-28
@firedragon

Try netcore.
Out of the box, it can
* database mssql mysql pgsql oracle
* Entity framework core
* oauth authorization, and everything is already written, you just need to rewrite a little
* a bunch of packages to support everything in the world
* the ability to work in Linux and Mac (and of course in windows)
* excellent development environment, Community version is sufficient for most scenarios
. Supports React and a whole bunch of goodies for client assembly.

D
Denis Kiselev, 2020-01-02
@deksden

Especially no one advises Node - but there is a certain logic: there will be fullstack js.
Well, express.js or any node framework for the back. There are enough packages in npm for everything, tutorials in Google - in bulk, the community is huge.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question