Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hatamiarash7/blockchain
My Personal BlockChain
https://github.com/hatamiarash7/blockchain
blockchain blockchain-demos blockchain-technology flask python
Last synced: 1 day ago
JSON representation
My Personal BlockChain
- Host: GitHub
- URL: https://github.com/hatamiarash7/blockchain
- Owner: hatamiarash7
- Created: 2018-05-17T06:11:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T09:06:20.000Z (4 months ago)
- Last Synced: 2024-06-19T18:22:53.590Z (4 months ago)
- Topics: blockchain, blockchain-demos, blockchain-technology, flask, python
- Language: Python
- Size: 70.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Personal Blockchain
[![Build Status](https://travis-ci.org/hatamiarash7/Blockchain.svg?branch=master)](https://travis-ci.org/hatamiarash7/Blockchain)
## Installation
1. Make sure [Python 3.6+](https://www.python.org/downloads/) is installed.
2. Install [pipenv](https://github.com/kennethreitz/pipenv).```
$ pip install pipenv
```3. Create a _virtual environment_ and specify the Python version to use.
```
$ pipenv --python=python3.6
```4. Install requirements.
```
$ pipenv install
```5. Run the server:
* `$ pipenv run python blockchain.py`
* `$ pipenv run python blockchain.py -p 5001`
* `$ pipenv run python blockchain.py --port 5002`
## DockerAnother option for running this blockchain program is to use Docker. Follow the instructions below to create a local Docker container:
1. Clone this repository
2. Build the docker container```
$ docker build -t blockchain .
```3. Run the container
```
$ docker run --rm -p 80:5000 blockchain
```4. 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
```## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.