DEV Community

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

Posted on • Edited 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!

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay