B
B
bvaflpgc2021-04-21 11:05:21
React
bvaflpgc, 2021-04-21 11:05:21

Optimal implementation of Django + React in a complex SPA application?

I thought about creating a large SPA project.
Publications, communication between users and other secondary functions.
In the near future, I plan to create a mobile application, so I need an API.

How to choose the optimal implementation of the Django + React bundle?
IF Interested in: speed of work, the possibility of simple support.

I'm considering the following implementation options:
1. React in my own Django application for the frontend. We load one HTML template and give React control of the frontend.
2. Django REST as a separate API + React as a separate SPA.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
javedimka, 2021-04-21
@javedimka

Well, look, to create a Django + React bundle, it seems to be the most optimal to take Django and React.
PS why is point number 1 considered at all, if you are also going to create a mobile application and you need an API?
Come on, take a break from qna sites, sit down, write on a piece of paper what you need and think, otherwise you pounced on a big SPA project without thinking.

A
Alexander, 2021-04-21
@Aleksandr-JS-Developer

only

Django REST as a separate API + React as a separate SPA.

if you work in a team where the fronts and backs are separate, then only in this
way, at least and among other things, the fronts will be exhausted to run all sorts of openServer, and the backs will be exhausted to collect front-line builds

V
Vadim, 2021-04-21
@Viji

Do the second option, now everyone is gradually switching to a clean API and it will be easier to screw it up for mobile. Until the backend is ready, use mocks ! If there are DevOps questions - write, you yourself have an idea to make such an application. And do not listen to those who say not to attack a big project, that's how you learn a lot of modern things!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question