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

Merge pull request #200 from oceanprotocol/separate-tools-and-examples

Split Tools & Examples into separate pages
This commit is contained in:
Troy McConaghy 2019-04-04 14:44:23 +02:00 committed by GitHub
commit d7088c8876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 185 additions and 167 deletions

View File

@ -28,6 +28,7 @@ Otherwise you are an "external contributor" and you must do the following:
- If the first line of the file is a line beginning with `#!` (e.g. `#!/usr/bin/python3`) then leave that as the first line and add the copyright notice afterwards. - If the first line of the file is a line beginning with `#!` (e.g. `#!/usr/bin/python3`) then leave that as the first line and add the copyright notice afterwards.
- If a copyright notice is present but it says something like `Copyright 2018 Ocean Protocol Foundation` then please change it to say the above. - If a copyright notice is present but it says something like `Copyright 2018 Ocean Protocol Foundation` then please change it to say the above.
- Make sure you're using the correct syntax for comments (which varies from language to language). The example shown above is for a Python file. - Make sure you're using the correct syntax for comments (which varies from language to language). The example shown above is for a Python file.
1. Read the [Developer Certificate of Origin, Version 1.1](https://developercertificate.org/). 1. Read the [Developer Certificate of Origin, Version 1.1](https://developercertificate.org/).
1. You will be asked to include a Signed-off-by line in all your commit messages. (Instructions are given in the next step.) Make sure you understand that including a Signed-off-by line in your commits certifies that you can make the statements in the Developer Certificate of Origin. If you have questions about this, then please [ask on Gitter](https://gitter.im/oceanprotocol/Lobby) or elsewhere. Do not continue until you fully understand. 1. You will be asked to include a Signed-off-by line in all your commit messages. (Instructions are given in the next step.) Make sure you understand that including a Signed-off-by line in your commits certifies that you can make the statements in the Developer Certificate of Origin. If you have questions about this, then please [ask on Gitter](https://gitter.im/oceanprotocol/Lobby) or elsewhere. Do not continue until you fully understand.
1. Make sure that all your commit messages include a Signed-off-by line of the form: 1. Make sure that all your commit messages include a Signed-off-by line of the form:

View File

@ -7,11 +7,11 @@ description: The technical basics of Ocean Tokens.
**Ocean Tokens** are the [cryptocurrency](https://en.wikipedia.org/wiki/Cryptocurrency) associated with Ocean Protocol. They are standards-compliant [ERC-20 tokens](https://en.wikipedia.org/wiki/ERC-20). **Ocean Tokens** are the [cryptocurrency](https://en.wikipedia.org/wiki/Cryptocurrency) associated with Ocean Protocol. They are standards-compliant [ERC-20 tokens](https://en.wikipedia.org/wiki/ERC-20).
Property | Value | Property | Value |
-----------------------|--------- | ---------------------- | -------------------------------------------------------- |
Token Contract Address | [See the tutorial](/tutorials/wallets-and-ocean-tokens/) | Token Contract Address | [See the tutorial](/tutorials/wallets-and-ocean-tokens/) |
Token Symbol | OCEAN | Token Symbol | OCEAN |
Decimals of Precision | 18 | Decimals of Precision | 18 |
## Testnet Ocean Tokens ## Testnet Ocean Tokens

View File

@ -31,10 +31,10 @@ The Nile Testnet is similar to the Kovan Testnet, except all the nodes are opera
There is a Nile blockchain explorer at [https://submarine.dev-ocean.com/](https://submarine.dev-ocean.com/). You can use it to check the status of a transaction, the balance of an account, and more. It uses the following symbols for Nile Ether and Nile Ocean Tokens: There is a Nile blockchain explorer at [https://submarine.dev-ocean.com/](https://submarine.dev-ocean.com/). You can use it to check the status of a transaction, the balance of an account, and more. It uses the following symbols for Nile Ether and Nile Ocean Tokens:
Cryptocurrency | Symbol used | Cryptocurrency | Symbol used |
------------------|------------ | ----------------- | ---------------- |
Nile Ether | POA | Nile Ether | POA |
Nile Ocean Tokens | OCEAN or SBT-OCN | Nile Ocean Tokens | OCEAN or SBT-OCN |
### Ocean Components Connected to Nile ### Ocean Components Connected to Nile

View File

@ -1,33 +1,24 @@
--- ---
title: Tools & Examples title: Tools
description: Tools and examples for developing with Ocean Protocol. description: Some tools that can be useful when working with Ocean Protocol.
--- ---
## Tools ## Plecos
### Plecos Plecos is a Python tool to check metadata (a JSON file) to see if it conforms to the [OEP-8 schema](https://github.com/oceanprotocol/OEPs/tree/master/8). It wraps the [jsonschema](https://github.com/Julian/jsonschema) validator. It can be found in [the Plecos repository on GitHub](https://github.com/oceanprotocol/plecos) and as [a Python package in PyPI](https://pypi.org/project/plecos/).
Plecos is a Python tool to check metadata (a JSON file) to see if it conforms to the [OEP8 schema](https://github.com/oceanprotocol/OEPs/tree/master/8). Plecos wraps the [jsonschema](https://github.com/Julian/jsonschema) validator. Users can use Plecos to check their metadata before sending it to an Aquarius instance. Aquarius can also use it to check metadata. Plecos can be found in [the Plecos repository on GitHub](https://github.com/oceanprotocol/plecos) and as [a Python package in PyPI](https://pypi.org/project/plecos/).
<repo name="Plecos"></repo> <repo name="Plecos"></repo>
Plecos can be used in a microservice to facilitate data onboarding, as described in the [plecos_service repository](https://github.com/oceanprotocol/plecos_service). Note: Aquarius uses Plecos for checking metadata and other Ocean Protocol software will probably use it in the future.
## Examples ## Faucet Server
### squid-py Examples The [Ocean Protocol Faucet Server](https://github.com/oceanprotocol/faucet) is a microservice that allows users to request Ether for a particular Ethereum network (e.g. the Nile Testnet).
- [The squid-py tutorials in Jupyter notebooks](/tutorials/jupyter-notebooks/) <repo name="faucet"></repo>
- [The squid_py/examples/ directory of the squid-py repository](https://github.com/oceanprotocol/squid-py/tree/develop/examples)
- [The squid-py tests](https://github.com/oceanprotocol/squid-py/tree/develop/tests)
### squid-js Examples ## BlockScout
- [The React App Tutorial](/tutorials/react-setup/) [BlockScout](https://github.com/poanetwork/blockscout) (by [POA](https://poa.network/)) is an open source blockchain explorer for Ethereum networks.
- [The src/examples/ directory of the squid-js repository](https://github.com/oceanprotocol/squid-js/tree/develop/src/examples)
- [The squid-js tests](https://github.com/oceanprotocol/squid-js/tree/develop/test)
### squid-java Examples There is an [Ocean Protocol fork of BlockScout](https://github.com/oceanprotocol/blockscout). An instance is deployed in the Nile Testnet at [https://submarine.dev-ocean.com/](https://submarine.dev-ocean.com/).
- [The squid-java README.md file](https://github.com/oceanprotocol/squid-java/blob/develop/README.md)
- [The squid-java tests](https://github.com/oceanprotocol/squid-java/tree/develop/src/test)

View File

@ -38,7 +38,6 @@ Note that unlike traditional pocket wallets, crypto wallets don't actually store
See the [tutorials about using wallets with Ocean Protocol](http://localhost:8000/tutorials/introduction/). See the [tutorials about using wallets with Ocean Protocol](http://localhost:8000/tutorials/introduction/).
[1]: https://metamask.io/ [1]: https://metamask.io/
[2]: https://trezor.io/ [2]: https://trezor.io/
[3]: https://www.ledger.com/ [3]: https://www.ledger.com/

View File

@ -13,12 +13,12 @@ If you're using [Barge](https://github.com/oceanprotocol/barge) to run a local K
Here are the parameters you might need to connect to the [Nile Testnet](/concepts/testnets/#the-nile-testnet): Here are the parameters you might need to connect to the [Nile Testnet](/concepts/testnets/#the-nile-testnet):
Parameter | Value | Parameter | Value |
-------------------|--------------- | ------------------ | ---------------------------------------------------------- |
RPC URL (required) | [https://nile.dev-ocean.com/](https://nile.dev-ocean.com/) | RPC URL (required) | [https://nile.dev-ocean.com/](https://nile.dev-ocean.com/) |
ChainID | 8995 (decimal for MetaMask) or 0x2323 (hexadecimal) | ChainID | 8995 (decimal for MetaMask) or 0x2323 (hexadecimal) |
Symbol | Whatever you like | Symbol | Whatever you like |
Nickname | Whatever you like | Nickname | Whatever you like |
In MetaMask, click on the network name then click on `Custom RPC` in the drop-down list. Scroll down to the `New Network` section. Enter the above RPC URL. You don't need to add a port number to the end of the RPC URL. Enter the ChainID, Symbol and Nickname if you like. See the [MetaMask docs about how it uses the ChainID](https://metamask.github.io/metamask-docs/Main_Concepts/Sending_Transactions). In MetaMask, click on the network name then click on `Custom RPC` in the drop-down list. Scroll down to the `New Network` section. Enter the above RPC URL. You don't need to add a port number to the end of the RPC URL. Enter the ChainID, Symbol and Nickname if you like. See the [MetaMask docs about how it uses the ChainID](https://metamask.github.io/metamask-docs/Main_Concepts/Sending_Transactions).

View File

@ -0,0 +1,21 @@
---
title: Example Code Using Squid
description: Examples of code using the Squid libraries.
---
## squid-py Examples
- [The squid-py tutorials in Jupyter notebooks](/tutorials/jupyter-notebooks/)
- [The squid_py/examples/ directory of the squid-py repository](https://github.com/oceanprotocol/squid-py/tree/develop/examples)
- [The squid-py tests](https://github.com/oceanprotocol/squid-py/tree/develop/tests)
## squid-js Examples
- [The React App Tutorial](/tutorials/react-setup/)
- [The src/examples/ directory of the squid-js repository](https://github.com/oceanprotocol/squid-js/tree/develop/src/examples)
- [The squid-js tests](https://github.com/oceanprotocol/squid-js/tree/develop/test)
## squid-java Examples
- [The squid-java README.md file](https://github.com/oceanprotocol/squid-java/blob/develop/README.md)
- [The squid-java tests](https://github.com/oceanprotocol/squid-java/tree/develop/src/test)

View File

@ -29,7 +29,7 @@ If you're connecting to the Nile testnet, then you can send get some Nile Ether
`curl -XPOST --data '{"address": "<YOUR ADDRESS>", "agent": "curl"}' -H "Content-Type: application/json" https://faucet.nile.dev-ocean.com/faucet` `curl -XPOST --data '{"address": "<YOUR ADDRESS>", "agent": "curl"}' -H "Content-Type: application/json" https://faucet.nile.dev-ocean.com/faucet`
In the above command you only need to replace `<YOUR ADDRESS>` with your own Ethereum address. In the above command you only need to replace `<YOUR ADDRESS>` with your own Ethereum address.
The Nile faucet has a limit of one request every 24 hours for the same Ethereum address. But don't worry, the Ether given is more than enough for interacting with the network. The Nile faucet has a limit of one request every 24 hours for the same Ethereum address. But don't worry, the Ether given is more than enough for interacting with the network.
### Get Ether for a Local Ganache-Based Testnet ### Get Ether for a Local Ganache-Based Testnet
@ -79,8 +79,8 @@ All Squid libraries have methods to request Ocean Tokens. They work by calling t
- [OceanAccounts.requestTokens()](/references/squid-js/#OceanAccounts-requestTokens) - [OceanAccounts.requestTokens()](/references/squid-js/#OceanAccounts-requestTokens)
- [Account.requestTokens()](/references/squid-js/#Account-requestTokens) - [Account.requestTokens()](/references/squid-js/#Account-requestTokens)
- The squid-py docs for: - The squid-py docs for:
- [the squid\_py.ocean.ocean\_tokens module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_tokens.html): see the `request()` method. - [the `squid_py.ocean.ocean_tokens` module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_tokens.html): see the `request()` method.
- [the squid\_py.ocean.ocean\_accounts module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_accounts.html): see the `request_tokens()` method. - [the `squid_py.ocean.ocean_accounts` module](https://squid-py.readthedocs.io/en/develop/api/squid_py.ocean.ocean_accounts.html): see the `request_tokens()` method.
- [The squid-java docs](https://www.javadoc.io/doc/com.oceanprotocol/squid/): click "All Classes" then "AccountsManager" then scroll to the bottom of the Class AccountsManager page where you'll find the `requestTokens()` method. - [The squid-java docs](https://www.javadoc.io/doc/com.oceanprotocol/squid/): click "All Classes" then "AccountsManager" then scroll to the bottom of the Class AccountsManager page where you'll find the `requestTokens()` method.
The [Tools & Examples page](/concepts/tools/#examples) has links to example Squid code (in all of the languages), including examples of using the above methods. The [Example Code page](/tutorials/example-code/) has links to example Squid code (in all of the languages), including examples of using the above methods.

View File

@ -86,67 +86,67 @@ window.ethereum.enable()
const asset = { const asset = {
base: { base: {
name: "10 Monkey Species Small", name: '10 Monkey Species Small',
dateCreated: "2012-02-01T10:55:11Z", dateCreated: '2012-02-01T10:55:11Z',
author: "Mario", author: 'Mario',
license: "CC0: Public Domain", license: 'CC0: Public Domain',
contentType: "jpg/txt", contentType: 'jpg/txt',
price: 10, price: 10,
files: [ files: [
{ {
checksum: "2bf9d229d110d1976cdf85e9f3256c7f", checksum: '2bf9d229d110d1976cdf85e9f3256c7f',
checksumType: "MD5", checksumType: 'MD5',
contentLength: 12057507, contentLength: 12057507,
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/training.zip" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/training.zip'
}, },
{ {
checksum: "354d19c0733c47ef3a6cce5b633116b0", checksum: '354d19c0733c47ef3a6cce5b633116b0',
checksumType: "MD5", checksumType: 'MD5',
contentLength: 928, contentLength: 928,
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/monkey_labels.txt" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/monkey_labels.txt'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/validation.zip" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/validation.zip'
} }
], ],
checksum: "", checksum: '',
categories: [ categories: ['image'],
"image" tags: ['image data', 'classification', 'animals'],
], type: 'dataset',
tags: [ description: 'EXAMPLE ONLY ',
"image data", size: '3.1gb',
"classification", copyrightHolder: 'Unknown',
"animals" encoding: 'UTF-8',
], compression: 'zip',
type: "dataset", workExample: 'image path, id, label',
description: "EXAMPLE ONLY ",
size: "3.1gb",
copyrightHolder: "Unknown",
encoding: "UTF-8",
compression: "zip",
workExample: "image path, id, label",
links: [ links: [
{ {
name: "example model", name: 'example model',
url: "https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM" url:
'https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM'
}, },
{ {
name: "example code", name: 'example code',
type: "example code", type: 'example code',
url: "https://github.com/slothkong/CNN_classification_10_monkey_species" url: 'https://github.com/slothkong/CNN_classification_10_monkey_species'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg", url:
name: "n5151.jpg", 'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg',
type: "discovery" name: 'n5151.jpg',
type: 'discovery'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip", url:
name: "sample.zip", 'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip',
type: "sample" name: 'sample.zip',
type: 'sample'
} }
], ],
inLanguage: "en" inLanguage: 'en'
} }
} }
@ -171,7 +171,7 @@ class App extends Component {
} }
async retrieveAssets() { async retrieveAssets() {
this.dbAssets = await this.ocean.assets.search("10 Monkey Species Small") this.dbAssets = await this.ocean.assets.search('10 Monkey Species Small')
console.log(this.dbAssets) console.log(this.dbAssets)
} }

View File

@ -18,67 +18,67 @@ To do that, we need to add the following code after `window.ethereum.enable()` l
```js ```js
const asset = { const asset = {
base: { base: {
name: "10 Monkey Species Small", name: '10 Monkey Species Small',
dateCreated: "2012-02-01T10:55:11Z", dateCreated: '2012-02-01T10:55:11Z',
author: "Mario", author: 'Mario',
license: "CC0: Public Domain", license: 'CC0: Public Domain',
contentType: "jpg/txt", contentType: 'jpg/txt',
price: 10, price: 10,
files: [ files: [
{ {
checksum: "2bf9d229d110d1976cdf85e9f3256c7f", checksum: '2bf9d229d110d1976cdf85e9f3256c7f',
checksumType: "MD5", checksumType: 'MD5',
contentLength: 12057507, contentLength: 12057507,
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/training.zip" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/training.zip'
}, },
{ {
checksum: "354d19c0733c47ef3a6cce5b633116b0", checksum: '354d19c0733c47ef3a6cce5b633116b0',
checksumType: "MD5", checksumType: 'MD5',
contentLength: 928, contentLength: 928,
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/monkey_labels.txt" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/monkey_labels.txt'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/validation.zip" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/validation.zip'
} }
], ],
checksum: "", checksum: '',
categories: [ categories: ['image'],
"image" tags: ['image data', 'classification', 'animals'],
], type: 'dataset',
tags: [ description: 'EXAMPLE ONLY ',
"image data", size: '3.1gb',
"classification", copyrightHolder: 'Unknown',
"animals" encoding: 'UTF-8',
], compression: 'zip',
type: "dataset", workExample: 'image path, id, label',
description: "EXAMPLE ONLY ",
size: "3.1gb",
copyrightHolder: "Unknown",
encoding: "UTF-8",
compression: "zip",
workExample: "image path, id, label",
links: [ links: [
{ {
name: "example model", name: 'example model',
url: "https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM" url:
'https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM'
}, },
{ {
name: "example code", name: 'example code',
type: "example code", type: 'example code',
url: "https://github.com/slothkong/CNN_classification_10_monkey_species" url: 'https://github.com/slothkong/CNN_classification_10_monkey_species'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg", url:
name: "n5151.jpg", 'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg',
type: "discovery" name: 'n5151.jpg',
type: 'discovery'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip", url:
name: "sample.zip", 'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip',
type: "sample" name: 'sample.zip',
type: 'sample'
} }
], ],
inLanguage: "en" inLanguage: 'en'
} }
} }
``` ```
@ -105,7 +105,7 @@ Tip: Before clicking the `Register asset` button, it might help to reload the pa
When you click on the `Register asset` button, you should get four separate dialog boxes from MetaMask, in a series, i.e. the second one only appears after you accept/approve the first one, and so on. When you click on the `Register asset` button, you should get four separate dialog boxes from MetaMask, in a series, i.e. the second one only appears after you accept/approve the first one, and so on.
If you have no errors in your `console.log`, then you have successfully registered an asset. If you have no errors in your `console.log`, then you have successfully registered an asset.
## Final Result ## Final Result
@ -122,67 +122,67 @@ window.ethereum.enable()
const asset = { const asset = {
base: { base: {
name: "10 Monkey Species Small", name: '10 Monkey Species Small',
dateCreated: "2012-02-01T10:55:11Z", dateCreated: '2012-02-01T10:55:11Z',
author: "Mario", author: 'Mario',
license: "CC0: Public Domain", license: 'CC0: Public Domain',
contentType: "jpg/txt", contentType: 'jpg/txt',
price: 10, price: 10,
files: [ files: [
{ {
checksum: "2bf9d229d110d1976cdf85e9f3256c7f", checksum: '2bf9d229d110d1976cdf85e9f3256c7f',
checksumType: "MD5", checksumType: 'MD5',
contentLength: 12057507, contentLength: 12057507,
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/training.zip" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/training.zip'
}, },
{ {
checksum: "354d19c0733c47ef3a6cce5b633116b0", checksum: '354d19c0733c47ef3a6cce5b633116b0',
checksumType: "MD5", checksumType: 'MD5',
contentLength: 928, contentLength: 928,
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/monkey_labels.txt" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/monkey_labels.txt'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/validation.zip" url:
'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/assets/validation.zip'
} }
], ],
checksum: "", checksum: '',
categories: [ categories: ['image'],
"image" tags: ['image data', 'classification', 'animals'],
], type: 'dataset',
tags: [ description: 'EXAMPLE ONLY ',
"image data", size: '3.1gb',
"classification", copyrightHolder: 'Unknown',
"animals" encoding: 'UTF-8',
], compression: 'zip',
type: "dataset", workExample: 'image path, id, label',
description: "EXAMPLE ONLY ",
size: "3.1gb",
copyrightHolder: "Unknown",
encoding: "UTF-8",
compression: "zip",
workExample: "image path, id, label",
links: [ links: [
{ {
name: "example model", name: 'example model',
url: "https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM" url:
'https://drive.google.com/open?id=1uuz50RGiAW8YxRcWeQVgQglZpyAebgSM'
}, },
{ {
name: "example code", name: 'example code',
type: "example code", type: 'example code',
url: "https://github.com/slothkong/CNN_classification_10_monkey_species" url: 'https://github.com/slothkong/CNN_classification_10_monkey_species'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg", url:
name: "n5151.jpg", 'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/discovery/n5151.jpg',
type: "discovery" name: 'n5151.jpg',
type: 'discovery'
}, },
{ {
url: "https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip", url:
name: "sample.zip", 'https://s3.amazonaws.com/datacommons-seeding-us-east/10_Monkey_Species_Small/links/sample/sample.zip',
type: "sample" name: 'sample.zip',
type: 'sample'
} }
], ],
inLanguage: "en" inLanguage: 'en'
} }
} }

View File

@ -8,6 +8,7 @@ description: This tutorial shows how you can build a basic [React](https://react
- `Node.js` >= 10 is installed. You can check using `node -v` - `Node.js` >= 10 is installed. You can check using `node -v`
- `npm` >= 5.2 is installed. You can check using `npm -v` - `npm` >= 5.2 is installed. You can check using `npm -v`
- Git clone the [oceanprotocol/barge](https://github.com/oceanprotocol/barge) repository, then in that directory: - Git clone the [oceanprotocol/barge](https://github.com/oceanprotocol/barge) repository, then in that directory:
- (Optional) If you want to use Azure Storage or Amazon S3 storage, then go through the tutorials to set those up: [Azure](/tutorials/azure-for-brizo/) or [Amazon](/tutorials/amazon-s3-for-brizo/). Note that if you're using Azure Storage, you must edit the `barge/brizo.env` file and set all `AZURE_`... values. - (Optional) If you want to use Azure Storage or Amazon S3 storage, then go through the tutorials to set those up: [Azure](/tutorials/azure-for-brizo/) or [Amazon](/tutorials/amazon-s3-for-brizo/). Note that if you're using Azure Storage, you must edit the `barge/brizo.env` file and set all `AZURE_`... values.
- (Optional but recommended) Clean out all your old Docker stuff using `docker system prune --all --volumes` - (Optional but recommended) Clean out all your old Docker stuff using `docker system prune --all --volumes`
- Use Barge to run a local Spree Testnet: - Use Barge to run a local Spree Testnet:

View File

@ -9,10 +9,10 @@ If you don't see any Ocean Tokens in your wallet software (e.g. MetaMask or MyEt
### Kovan or Nile Testnet ### Kovan or Nile Testnet
Testnet | Ocean Token Contract Address | Testnet | Ocean Token Contract Address |
--------------|----------------------------- | ------- | -------------------------------------------- |
Kovan | `0xB57C4D626548eB8AC0B82b086721516493E2908d` | Kovan | `0xB57C4D626548eB8AC0B82b086721516493E2908d` |
Nile | `0xcDae1AFa8025BE03Bc56D112eB4da3277913563d` | Nile | `0xcDae1AFa8025BE03Bc56D112eB4da3277913563d` |
If the above addresses are out-of-date, then you can find newer ones in the [keeper-contracts repository on GitHub](https://github.com/oceanprotocol/keeper-contracts): If the above addresses are out-of-date, then you can find newer ones in the [keeper-contracts repository on GitHub](https://github.com/oceanprotocol/keeper-contracts):

View File

@ -6,7 +6,7 @@
link: /concepts/terminology/ link: /concepts/terminology/
- title: Software Components - title: Software Components
link: /concepts/components/ link: /concepts/components/
- title: Tools & Examples - title: Tools
link: /concepts/tools/ link: /concepts/tools/
- title: Testnets - title: Testnets
link: /concepts/testnets/ link: /concepts/testnets/

View File

@ -36,3 +36,8 @@
items: items:
- title: Jupyter Notebooks - title: Jupyter Notebooks
link: /tutorials/jupyter-notebooks/ link: /tutorials/jupyter-notebooks/
- group: More Examples
items:
- title: Example Code Using Squid
link: /tutorials/example-code/