API documentation (#253)

* Remove badges from READMEs (used inside docs)

* Expand intro

* Intro and examples for ApiRx

* examples -> examples-rpc

* Update intros with expanded example

* Don't nest subscriptions
This commit is contained in:
Jaco Greeff
2018-10-11 15:27:00 +02:00
committed by GitHub
parent 35115723e1
commit a4fc2c51e8
42 changed files with 220 additions and 100 deletions
+27
View File
@@ -0,0 +1,27 @@
# Examples
For the following examples, you need a local node. It is usually convenient testing with:
```
polkadot --dev
```
Some of the examples use the following accounts:
- Alice: `5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaDtZ`
- Bob: `5Gw3s7q4QLkSWwknsiPtjujPv3XM4Trxi5d4PgKMMk3gfGTE`
Those accounts are easy to add if you don't have/see them. The seed of Alice's account is `Alice␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣` and the seed of Bob is... well you guess...
NOTE: Note the spaces padding Alice's key up to 32 chars.
## Install
From each folder, run `yarn` to install the required dependencies
## Running the examples
From each folder, run:
```
yarn start
```