A sample app that runs a React app inside a Django template.
After cloning this repo:
# set up backend environment
pip install pipenv
pipenv install
pipenv run ./manage.py migrate
# set up frontend environment
cd frontend
npm install -g yarn
yarn
yarn start
pipenv run ./manage.py runserver
Several routes are now available:
route | is auth required? | is 404? |
---|---|---|
/ | no | no |
/auth | yes | no |
/notprivate | no | yes |
/notprivate/private/ | yes | yes |