Introduction
We have to run two servers if we want to use React App as a SPA server and use Django app as an APIs server. What if we only want to launch one server on the machine?
This article is a note to solve this problem. One of the ways to connect the React App and Django App is to render the React page from the Django server.
Details
Please refer to my article. It includes two parts.
1.Initialize Django App and React App
2.Connect CRA(React App) with Django App
Implementation
Please refer to my repository.
https://github.com/JenHsuan/django-react-example
Articles
There are some of my articles. Feel free to check if you like!
- My blog-posts for software developing: https://medium.com/a-layman
- My web resume: https://jenhsuan.github.io/ALayman/cover.html
- Facebook page: https://www.facebook.com/imalayman
Top comments (0)