You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-13Lines changed: 27 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,36 +19,50 @@ Visit [SUPPORTED_FEATURES.md](SUPPORTED_FEATURES.md) to see the full list of fea
19
19
20
20
[>>> Watch the demo <<<](https://www.youtube.com/watch?v=5yn3_g6Cybw)
21
21
22
+
## Quick start
23
+
24
+
```bash
25
+
curl fablo.io/fablo.sh > fablo && chmod +x fablo
26
+
./fablo init node rest
27
+
./fablo up
28
+
```
29
+
30
+
This will create a local Hyperledger Fabric network with a sample Node.js chaincode (using the `node` parameter) and a REST API client (using the `rest` parameter).
31
+
After a few minutes, the entire network will be set up and running.
32
+
33
+
You can check the running nodes using `docker ps` or `docker stats`. You can also query the network via the command line (`fablo chaincode invoke` or `fablo chaincode query`), use the REST API client (see [Fablo REST](https://github.com/fablo-io/fablo-rest)), or view the network topology in the `fablo-target/network-topology.mmd` Mermaid diagram.
34
+
22
35
## Installation
23
36
24
37
Fablo is distributed as a single shell script that uses a Docker image to generate the network configuration.
25
-
You can keep the script in the root directory of your project or install it globally on your system.
26
-
27
-
To get a copy of Fablo for a single project, run this command in your project root:
To create a local Hyperledger Fabric network with Node.js chaincode and REST API client, install Fablo and run:
56
+
To change version of current installation:
42
57
43
58
```bash
44
-
fablo init node rest
45
-
fablo up
59
+
fablo use <version>
46
60
```
47
61
48
-
Note: For local setup use `./fablo` instead of `fablo`.
62
+
Note: If you install Fablo as a local script, you call it as `./fablo <command>`.
63
+
If you install it globally, you call `fablo <command>`.
64
+
For the simplicity we will refer to it as `fablo`.
49
65
50
-
After a few minutes, the entire network will be set up and running.
51
-
You can check the running nodes using `docker ps` or `docker stats`, and query the network via command line (`fablo chaincode invoke|query`) or REST API client (via [Fablo REST](https://github.com/fablo-io/fablo-rest)).
0 commit comments