This is a demo project for my blog post here.
It's deployed on Fly.io here.
yarn install(ornpm install)poetry install(orpip install -r requirements.txt)
Run the Django server (python manage.py runserver) and Webpack in another tab (yarn start).
For more convenience you can use a tool like Goreman to run Django and Webpack in a single terminal: goreman -f Procfile.dev start.
Compile assets first with yarn build, then use Django collectstatic: python manage.py collectstatic.
If you're running on Heroku this will happen automatically if you use both the Node.js and Python buildpacks.