1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Even more edits to new react app tutorial

This commit is contained in:
Troy McConaghy 2018-12-05 18:53:28 +01:00
parent 7ae75865b8
commit 6d417e205d
2 changed files with 7 additions and 4 deletions

View File

@ -5,12 +5,12 @@ description: Tutorial to add data set publishing capabilities to a basic React a
## Requirements
This is continuation of the [React App Setup](/tutorials/react-setup) tutorial, so make sure you have all the steps running.
This is a continuation of the [React App Setup](/tutorials/react-setup) tutorial, so make sure you have all the steps running.
## Adding Publishing
1. Open `src/App.js` in your marketplace app from the [React App Setup](/tutorials/react-setup) tutorial.
2. First lets add asset that we want to publish. To do that we need to add the following code after `window.ethereum.enable()` line.
2. First let's add the asset that we want to publish. To do that we need to add the following code after `window.ethereum.enable()` line.
```javascript
const asset = {

View File

@ -9,8 +9,11 @@ This tutorial shows how you can build a basic [React](https://reactjs.org/) app
- `nodejs` >= 10 is installed. You can check using `node -v`
- `npm` >= 5.2 is installed. You can check using `npm -v`
- Running all the services started by `./start_ocean.sh --no-pleuston --local-pond-node` in [oceanprotocol/docker-images](https://github.com/oceanprotocol/docker-images) running with
- Using browser with [MetaMask](https://metamask.io/) and some Ether in your account (for the network you're connected to). See [the tutorial about getting Ether and Ocean Tokens for testnets](/tutorials/get-ether-and-ocean-tokens/).
- Do [the tutorial to Set Up Azure Storage](/tutorials/azure-for-brizo/).
- Git clone the [oceanprotocol/docker-images](https://github.com/oceanprotocol/docker-images) repository, then in that directory:
- Edit the `brizo.env` file and set all `AZURE_`... values.
- Run `./start_ocean.sh --no-pleuston --local-pond-node` in [oceanprotocol/docker-images](https://github.com/oceanprotocol/docker-images). This runs all services locally, including a local Parity Ethereum node.
- Use a browser with [MetaMask](https://metamask.io/) and some Ether in your account. See [the tutorial about getting Ether and Ocean Tokens for testnets](/tutorials/get-ether-and-ocean-tokens/).
## Tutorial Steps