Skip to content

Commit 0f9d21a

Browse files
committed
1 parent d6f80e0 commit 0f9d21a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@ To set up your backend, run:
3131
$ bundle install
3232
```
3333

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:
3636

3737
```console
38-
$ rails start
38+
$ rails s
3939
```
4040

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`:
4348

4449
- React: [http://localhost:4000](http://localhost:4000)
4550
- Rails: [http://localhost:3000](http://localhost:3000)

0 commit comments

Comments
 (0)