Boiler plate code to use React and Django together without much configuration.
After cloning the repo.
$ cd react_django_boilerplate
$ docker-compose build
$ docker-compose up
Or if you've yet to build the docker images:
$ docker-compose up --build
First build the static files.
$ yarn build
Run the server with production settings.
$ python manage.py runserver --settings=production_settings
You may need to install babel-loader
$ yarn add babel-loader --dev
You might also need to run collect static for you server to see you static files
$ python manage.py collectstatic