A simple Blockchain implemented in Python
Go to file
Marius-Constantin Melemciuc 3bb27e586a Add pipenv instead of plain requirements.txt 2017-10-02 13:04:19 +03:00
.gitignore Update gitignore 2017-09-24 15:39:51 -04:00
LICENSE Initial commit 2017-09-24 15:36:36 -04:00
Pipfile Add pipenv instead of plain requirements.txt 2017-10-02 13:04:19 +03:00
Pipfile.lock Add pipenv instead of plain requirements.txt 2017-10-02 13:04:19 +03:00
README.md Add pipenv instead of plain requirements.txt 2017-10-02 13:04:19 +03:00
blockchain.py Add option to choose port from command line 2017-09-30 18:07:06 -04:00

README.md

Learn Blockchains by Building One

This is the source code for my post on Building a Blockchain.

Installation

  1. Make sure Python 3.6+ is installed.
  2. Install pipenv.
$ pip install pipenv 
  1. Create a virtual environment and specify the Python version to use.
$ pipenv --python=python3.6
  1. Install requirements.
$ pipenv install 
  1. Run the server:
    • $ pipenv run python blockchain.py
    • $ pipenv run python blockchain.py -p 5001
    • $ pipenv run python blockchain.py --port 5002

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.