Skip to content

Commit 8e9b6df

Browse files
AsadManzoorAsadManzoor
AsadManzoor
authored and
AsadManzoor
committed
Initial Commit
0 parents  commit 8e9b6df

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

Diff for: README.md

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
[//]: # (SPDX-License-Identifier: CC-BY-4.0)
2+
3+
## Hyperledger Fabric Blockchain
4+
5+
Please visit the [installation instructions](http://hyperledger-fabric.readthedocs.io/en/latest/install.html)
6+
to ensure you have the correct prerequisites installed. Please use the
7+
version of the documentation that matches the version of the software you
8+
intend to use to ensure alignment.
9+
10+
## Download Binaries and Docker Images
11+
12+
The installation instructions will utilize `scripts/bootstrap.sh` (available in the fabric repository)
13+
script to download all of the requisite Hyperledger Fabric binaries and docker
14+
images, and tag the images with the 'latest' tag. Optionally,
15+
specify a version for fabric, fabric-ca and thirdparty images. If versions
16+
are not passed, the latest available versions will be downloaded.
17+
18+
The script will also clone fabric-samples repository using the version tag that
19+
is aligned with the Fabric version.
20+
21+
You can also download the script and execute locally:
22+
23+
```bash
24+
# Fetch bootstrap.sh from fabric repository using
25+
curl -sS https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh -o ./scripts/bootstrap.sh
26+
# Change file mode to executable
27+
chmod +x ./scripts/bootstrap.sh
28+
# Download binaries and docker images
29+
./scripts/bootstrap.sh [version] [ca version] [thirdparty_version]
30+
```
31+
32+
### Continuous Integration
33+
34+
Please have a look at [Continuous Integration Process](docs/fabric-samples-ci.md)
35+
36+
## License <a name="license"></a>
37+
38+
Hyperledger Project source code files are made available under the Apache
39+
License, Version 2.0 (Apache-2.0), located in the [LICENSE](LICENSE) file.
40+
Hyperledger Project documentation files are made available under the Creative
41+
Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
42+
43+
44+
## API Setup Guide
45+
46+
1- Go to the following path
47+
48+
```
49+
cd {project-path}/hyperledger-fabric-term-project/fabcar/javascript/
50+
```
51+
52+
2- Install the Node packages
53+
54+
```
55+
npm i
56+
```
57+
58+
3- Install nodemon package to serve api's
59+
60+
```
61+
npm i -g nodemon
62+
```
63+
64+
4- Start API server
65+
66+
```
67+
nodemon index.js
68+
```
69+
70+
5- Check that API is running or not by visiting the following [link](http://localhost:8080).
71+
72+
## Restarting Network
73+
74+
```
75+
docker stop $(docker ps -a -q)
76+
docker rmi -f $(docker images | grep fabcar | awk '{print $3}')
77+
docker ps -qa|xargs docker rm
78+
```

0 commit comments

Comments
 (0)