Answer the question
In order to leave comments, you need to log in
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
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.
only
Django REST as a separate API + React as a separate SPA.
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 questionAsk a Question
731 491 924 answers to any question