Skip to content

Commit 0963041

Browse files
authored
Merge pull request jimmysong#108 from RandyMcMillan/setting-up
add setup info
2 parents 134aabd + aeda4a1 commit 0963041

File tree

1 file changed

+78
-1
lines changed

1 file changed

+78
-1
lines changed

README.md

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,82 @@
1-
# General
1+
#[Programming Bitcoin](https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/)
2+
3+
###BY[ JIMMY SONG](https://github.com/jimmysong)
4+
5+
#####[O'Reilly Media, Inc.March 2019](https://learning.oreilly.com/library/publisher/oreilly-media-inc/)
6+
7+
# LICENSE
28

39
Repository for the book to be published by O'Reilly.
410

511
This book will be licensed under [CC-BY-NC-ND](https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode) once the book is published.
12+
13+
14+
##Setting Up
15+
16+
17+
To get the most out of this book, you’ll want to create an environment where you can run the example code and do the exercises. Here are the steps required to set everything up:
18+
19+
###1. Install Python 3.5 or higher on your machine:
20+
21+
Windows:
22+
[https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe
23+
](https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe
24+
)
25+
26+
macOS:
27+
[https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg](https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg)
28+
29+
Linux
30+
#####See your distro docs (many Linux distributions, like Ubuntu, come with Python 3.5+ preinstalled)
31+
32+
###2. Install pip by downloading this script: [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py).
33+
34+
###3. Run this script using Python 3:
35+
36+
`$ python3 get-pip.py`
37+
38+
###4. Install Git. The commands for downloading and installing it are at [https://git-scm.com/downloads](https://git-scm.com/downloads).
39+
40+
###5. Download the source code for this book:
41+
42+
`$ git clone https://github.com/jimmysong/programmingbitcoin`
43+
`$ cd programmingbitcoin`
44+
45+
###6. Install virtualenv:
46+
47+
`$ pip install virtualenv`
48+
49+
###7. Install the requirements:
50+
51+
Linux/macOS
52+
53+
`$ virtualenv -p python3 .venv`
54+
`$ . .venv/bin/activate`
55+
`(.venv) $ pip install -r requirements.txt`
56+
57+
Windows
58+
59+
`C:\programmingbitcoin> virtualenv -p`
60+
`C:\PathToYourPythonInstallation\Python.exe .venv`
61+
`C:\programmingbitcoin> .venv\Scripts\activate.bat`
62+
`C:\programmingbitcoin> pip install -r requirements.txt`
63+
###8. Run Jupyter Notebook:
64+
65+
`(.venv) $ jupyter notebook`
66+
`[I 11:13:23.061 NotebookApp] Serving notebooks from local directory:
67+
/home/jimmy/programmingbitcoin`
68+
`[I 11:13:23.061 NotebookApp] The Jupyter Notebook is running at:
69+
[I 11:13:23.061 NotebookApp] http://localhost:8888/?token=
70+
f849627e4d9d07d2158e3fcde93590eff4a9a7a01f65a8e7`
71+
`[I 11:13:23.061 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).`
72+
`[C 11:13:23.065 NotebookApp]`
73+
`Copy/paste this URL into your browser when you connect for`
74+
`the first time, to login with a token:`
75+
`http://localhost:8888/?token=f849627e4d9d07d2158e3fcde93590eff4a9a7a01f65a8e7`
76+
77+
78+
You should have a browser open up automatically, as shown in [Figure P-1](https://raw.githubusercontent.com/jimmysong/programmingbitcoin/master/images/prbc_0001.png).
79+
80+
![](https://raw.githubusercontent.com/jimmysong/programmingbitcoin/master/images/prbc_0001.png)
81+
82+
MORE INFO AT: [https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up](https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up)

0 commit comments

Comments
 (0)