- Make sure Python 3.6+ is installed.
- Install pipenv.
$ pip install pipenv
- Install requirements
$ pipenv install
- Run the server:
$ pipenv run python blockchain.py
$ pipenv run python blockchain.py -p 5001
$ pipenv run python blockchain.py --port 5002
Another option for running this blockchain program is to use Docker. Follow the instructions below to create a local Docker container:
- Clone this repository
- Build the docker container
$ docker build -t blockchain .
- Run the container
$ docker run --rm -p 80:5000 blockchain
- To add more instances, vary the public port number before the colon:
$ docker run --rm -p 81:5000 blockchain
$ docker run --rm -p 82:5000 blockchain
$ docker run --rm -p 83:5000 blockchain
-
Jenkins setup: In github: go to repo ==> settings ==>webhook==>add webhooks Add in webhook from Jenkins for example: http://myserver.com:8080/github-webhook/, replace with your server address
-
Swaggerfile: In Swagger API Editor tool, File==>Import https://raw.githubusercontent.com/dappsunilabs/chain/master/swaggerfile.yml