michaelgainyo / django-react-boilerplate

How to setup Django and React with minimal configuration

Home Page:http://michaelgainyo.com/articles/how-to-get-django-and-reactjs-to-work-together/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get Django and React to work together.

This repo follows the blog post on how to setup django and react with minimal configuration

How to use

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/.

About

How to setup Django and React with minimal configuration

http://michaelgainyo.com/articles/how-to-get-django-and-reactjs-to-work-together/

License:MIT License


Languages

Language:Python 66.7%Language:JavaScript 16.8%Language:HTML 11.6%Language:CSS 4.9%