Skip to content

Commit bbb2078

Browse files
authored
Merge pull request #8 from cristofer/master
Updating the README: steps for setting up the Demo App
2 parents 83f9a48 + 8eff6b2 commit bbb2078

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ This repo is an example of a simple working Rails 5, Webpack(er)3, React-Rails 2
44

55
Where generators are used, the git commit will be the command ran to get to the current application state so it will hopefully be easy to follow along at home.
66

7+
## How to test the Demo Application
8+
9+
#### 1) Install the JS packages:
10+
11+
```
12+
$ yarn (or npm install)
13+
```
14+
15+
#### 2) In one terminal run the rails server:
16+
17+
```
18+
$ rails s
19+
```
20+
21+
#### 3) In another terminal run the webpack server:
22+
23+
```
24+
$ ./bin/webpack-dev-server
25+
```
26+
27+
#### 4) Visit the welcome page
28+
29+
```
30+
http://localhost:3000/welcome/index
31+
```
32+
733
## Branches
834

935
This repo contains two trees, one Webpacker and one Sprockets.

0 commit comments

Comments
 (0)