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.
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.
This seems very helpful! I tried it out, and noticed that visiting localhost:8000 results in:
Is that expected?
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.
hey man , there wont be a part 2 ?