File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,20 @@ To set up your backend, run:
31
31
$ bundle install
32
32
```
33
33
34
- To see how the React application and Rails API are interacting, you can run both
35
- the Rails application and the React application together by running:
34
+ To see how the React application and Rails API are interacting, you can run the
35
+ Rails application in one terminal by running:
36
36
37
37
``` console
38
- $ rails start
38
+ $ rails s
39
39
```
40
40
41
- This will run a Rake task that will start both the Rails app and the React app.
42
- You must use ` rails start ` (not ` rails s ` ) to start both applications together!
41
+ Then, open another terminal and run React:
42
+
43
+ ``` console
44
+ $ npm start --prefix client
45
+ ```
46
+
47
+ Each application will run on its own port on ` localhost ` :
43
48
44
49
- React: [ http://localhost:4000 ] ( http://localhost:4000 )
45
50
- Rails: [ http://localhost:3000 ] ( http://localhost:3000 )
You can’t perform that action at this time.
0 commit comments