Skip to content

Commit 7f1a459

Browse files
committed
Added READMes to examples
1 parent b4e5cb5 commit 7f1a459

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

examples/README

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Usage
2+
3+
Setup virtualenv (optional)
4+
```bash
5+
virtualenv ve
6+
. ve/bin/activate
7+
```
8+
9+
Install dependencies
10+
```bash
11+
pip install -r requirements.txt
12+
npm install
13+
```
14+
15+
Run django server
16+
```bash
17+
./manage.py runserver
18+
```
19+
20+
Run webpack compiler
21+
```bash
22+
./node_modules/.bin/webpack --config assets/webpack.config.js --watch
23+
```

examples/code-splitting/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README

examples/hot-reload/README

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Usage
2+
3+
Setup virtualenv (optional)
4+
```bash
5+
virtualenv ve
6+
. ve/bin/activate
7+
```
8+
9+
Install dependencies
10+
```bash
11+
pip install -r requirements.txt
12+
npm install
13+
```
14+
15+
Run django server
16+
```bash
17+
./manage.py runserver
18+
```
19+
20+
Run webpack dev server
21+
```bash
22+
node server.js
23+
```
24+
25+
Now you can make changes to `assets/js/app.jsx` and the changes will show up in the browser automagically.

examples/simple/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README

0 commit comments

Comments
 (0)