This repo follows the blog post on how to setup django and react with minimal configuration
I have broken the steps by branches so you can follow along.
In your working directory:
git clone https://github.com/marqetintl/django-react-boilerplate.git
Next, create a virtual environment called env
and activate it with:
cd django-react-boilerplate
python3 -m venv env
source env/bin/activate
Install dependencies:
pip3 install -r requirements.txt
cd client/
npm install
Build the project and run the server
./manage.py build
./manage.py runserver
Finally, open your browser and navigate to http://127.0.0.1:8000/
.