DEV Community

Cover image for Day 5 of #100DaysOfCode: Connect React App with Django App
Jen-Hsuan Hsieh
Jen-Hsuan Hsieh

Posted on

Day 5 of #100DaysOfCode: Connect React App with Django App

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

https://medium.com/a-layman/build-single-page-application-with-react-and-django-part-1-connect-react-app-with-django-app-dbf6b5ec52f4

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!

Top comments (0)