https://github.com/peakwinter/django-react-talk
Code samples for "Playing Nice with Django and React" talk
https://github.com/peakwinter/django-react-talk
Last synced: 7 months ago
JSON representation
Code samples for "Playing Nice with Django and React" talk
- Host: GitHub
- URL: https://github.com/peakwinter/django-react-talk
- Owner: peakwinter
- Created: 2017-11-23T02:19:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-23T02:19:26.000Z (over 8 years ago)
- Last Synced: 2024-12-29T15:28:14.428Z (over 1 year ago)
- Language: Python
- Size: 32.2 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playing Nice with Django and React
### Code Samples
This repository contains the Django + React practice project as demonstrated during the presentation "Playing Nice with Django and React" by Jacob Cook.
To get started:
```bash
# Set up virtualenv
virtualenv -p python3 env
source env/bin/activate
# Install requirements
pip install -r requirements.txt
yarn install
# Create database
python manage.py migrate
python manage.py loaddata fixtures.json
# Generate assets
yarn run webpack
# Run server
python manage.py runserver
```
### Note
This is an extremely simple (and silly) example. We can add more pages and components, as well as more logic based on the Django side of things, using the same model.