Add readme for running react app

This commit is contained in:
nabarun 2022-12-22 10:29:16 +05:30
parent b652d17ea9
commit 867802ec67

View File

@ -2,6 +2,50 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Instructions
* Install dependencies
```bash
yarn install
```
* Build the peer package
```bash
# From repo root
cd packages/peer
yarn build
```
* Run the signalling server
```bash
# In packages/peer
yarn signal-server
```
* Start the react app in development mode
```bash
# In packages/peer-test-app
yarn start
```
* The app can be opened in multiple browsers
## Development
* After making changes in [peer](../peer/) package run build
```bash
# In packages/peer
yarn build
```
* The react app server running in development mode should recompile after changes are made in peer package
## Available Scripts ## Available Scripts
In the project directory, you can run: In the project directory, you can run: