792: Update README r=klochowicz a=klochowicz
Refer to the commits' descriptions for more info
Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>
The maker and taker frontend depend on the respective daemon running.
At the moment the maker daemon has to be started first:
## Starting the maker and taker frontend
```bash
cargo run --bin maker
```
We use a separate react projects for hosting taker and maker frontends.
Once the maker is started you can start the taker:
### Building the frontends
The latest version of the built frontends will be embedded by `cargo` inside
their respective daemons and automatically served when the daemon starts.
Embedded frontend is served on ports `8000` and `8001` by default.
This means that it is highly recommended to build the frontend _before_ the daemons.
#### Taker
```bash
cargo run --bin taker
cd taker-frontend
yarn install
yarn build
```
Upon startup the taker daemon will connect to the (hardcoded) maker and retrieve the current order.
Note: The sqlite databases for maker and taker are currently created in the project root.
#### Maker
## Starting the maker and taker frontend
```bash
cd maker-frontend
yarn install
yarn build
```
We use a separate react projects for hosting taker and maker frontends.
### Developing frontend code
At the moment you will need a browser extension to allow CORS headers like `CORS Everywhere` ([Firefox Extension](https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/)) to use the frontends.
If hot-reloading of the app is required, frontend can be started in development mode.
Development frontend is served on ports `3000` and `3001` by default.