Skip to content

Instantly share code, notes, and snippets.

@abidibo
Last active September 15, 2016 08:57
Show Gist options
  • Save abidibo/a98b53afc2180aa8a8ee to your computer and use it in GitHub Desktop.
Save abidibo/a98b53afc2180aa8a8ee to your computer and use it in GitHub Desktop.
DRF + React js

React.js application development using DRF as REST API

Goal:

  • develop a REST API with django and django-rest-framework
  • develop a react.js frontend application served by django to consume the API
  • react code as STATIC files
  • npm to manage frontend dependencies
  • use a bundler to put all js code together and feed the browser
  • use ES6 specifications (translated into ES5 compilant code by babel)

Tools

  • django
  • django-rest-framework
  • node (npm)
  • webpack (packaging for the browser)
  • babel (processing, transforming, bla bla
  • react
  • jest (testing)

Resources

Watch for src changes with webpack

Inside ROOT (where manage.py resides)

$ ./app/node_modules/.bin/webpack --config app/webpack.config.js --watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment