Skip to content

jteneycke/django-restframework-react-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

A sample of how to structure a django app with create-react-app to get past the cthulhuian madness of figuring out how to proxy CORs and CSRF in development, and the subtle "peculiarities" of djangorestframework.

Up and running

One terminal for Django

pip install -r requirements.txt
./manage.py migrate
./manage.py runserver

Another terminal for the frontend

cd frontend
yarn
yarn run start

References

Setting up combined app structure for development (CORS & CSRF)

Global State Management (a simpler way to bypass passing props all over the place)

Using JWT and React Router

More recent example using Context API

Misc React Stuff

Misc Django Stuff

Dependencies

Useful Dev Stuff (shell_plus, etc)

App specific deps

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published