Update README.md

This commit is contained in:
Daniel van Flymen 2018-10-13 13:17:05 -04:00 committed by GitHub
parent 2d995664bb
commit 28d3ee8c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -12,20 +12,12 @@ This is the source code for my post on [Building a Blockchain](https://medium.co
``` ```
$ pip install pipenv $ pip install pipenv
``` ```
3. Install requirements
3. Create a _virtual environment_ and specify the Python version to use.
```
$ pipenv --python=python3.6
```
4. Install requirements.
``` ```
$ pipenv install $ pipenv install
``` ```
5. Run the server: 4. Run the server:
* `$ pipenv run python blockchain.py` * `$ pipenv run python blockchain.py`
* `$ pipenv run python blockchain.py -p 5001` * `$ pipenv run python blockchain.py -p 5001`
* `$ pipenv run python blockchain.py --port 5002` * `$ pipenv run python blockchain.py --port 5002`