Skip to content

Commit

Permalink
Refractor: Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin-narang committed Mar 3, 2019
1 parent 329d859 commit 61a4233
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,18 @@
```

### Test localhost app on mobile device
To run the localhost app on your mobile you need to be connected with same wifi network, once you are connected you can run following command:
To run the localhost app on your mobile you need to be connected with same wifi network and you need to check your inet address.

To check you inet address open your terminal and run " $ ifconfig " and check for inet address.

Example: inet addr:192.168.1.22

inet addr:192.168.1.10


Once you are connected you can run following command:
```
$ HOST=0.0.0.0 npm start
$ HOST=<inet addr>:Port Number npm start

```

Expand All @@ -93,12 +102,7 @@

Example: config = { baseUrl: 'http://<inet address>:9000' };

To check you inet address open your terminal and run ifconfig and check for inet address.

Example: inet addr:192.168.1.22

inet addr:192.168.1.10

To open this react app on mobile :

Open your browser and type <inet address>:Port number on which you are running the react app.
Expand Down

0 comments on commit 61a4233

Please sign in to comment.