DjReact

A simple introduction to integrating Django and React.

365
159
JavaScript

JustDjango

The Definitive Django Learning Platform.

Django + React Introduction

This project is broken up into a backend and frontend. The backend contains the Django project which uses the Django Rest Framework to host a simple API. The frontend uses React and queries data from the API.

Run the following commands to get started:

virtualenv env
pip install -r requirements.txt
npm i
npm run build
python manage.py runserver

To navigate back to the starting code of video 2:

git init
git clone https://github.com/justdjango/DjReact.git
cd DjReact
git reset --hard 815eb83e0894d9bc5ebef66501721dc5063cf6a0

For video 3:

git reset --hard 3030f494a799e5b7996342e5176f7c604dcf868b

Remove the git repo with this command on mac/linux:

rm -rf .git

and this on windows:

rmdir .git

Other places you can find us:

YouTube
Twitter