DEV Community

Discussion on: React, Django, and PostgreSQL Dockerized — Part 1: Development Setup

Collapse
 
iamsimonyu profile image
Simon Yu

This seems very helpful! I tried it out, and noticed that visiting localhost:8000 results in:

This URL is only used when you have built the production version of the app. Visit localhost:3000/ instead, or run yarn run build to test the production version.

Is that expected?

Collapse
 
alchermd profile image
John Alcher

Hi! That is expected, as the local development we would like is that given by React's dev server through yarn run dev. This should be readily exposed on port 3000 on your machine, essentially decoupling the React app with the Django API.

Disclaimer: I actually have abandoned this setup (hence no part 2 😅) and have opted to use my own custom Webpack pipeline in order to run React+Django within a single container.

Collapse
 
aminkhorrami profile image
aminkhorrami

hey man , there wont be a part 2 ?