Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 244379e

Browse filesBrowse files
authored
Update README.md
Includes code for operation in windows machines as well. Just follow the code. If you encounter an error, please try to ping me and I'll try to solve it.
1 parent 8f9055d commit 244379e
Copy full SHA for 244379e

File tree

1 file changed

+27
-1
lines changed
Filter options

1 file changed

+27
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+27-1Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,55 @@
55

66
**Activate the virtual environment**
77
<br>
8+
Make sure you create a virtual python environment using the command given as follows
9+
```
10+
python3 -m venv blockchain-env
11+
```
812
This is a requirement because any change in the python module in the system can affect the whole code. A virtual environment will not cause any such problem to the system modules.
13+
914
```
1015
source blockchain-env/bin/activate
1116
```
17+
For windows, make sure to create a seperate virtual enviroment named 'blockchain-env'
18+
To run the code for blockchain environment
19+
```
20+
./blockchain-env/Scripts/activate
21+
```
1222

1323
**Installing all the requirements**
1424
<br>
1525
All the requirements will be updated in the requirements.txt file hence there will not be any requirement of typing numbers of code. Enter the following code in the terminal or command prompt to install the given requirements. Make sure you have pip installed.
1626
```
1727
pip3 install -r requirements.txt
1828
```
29+
For windows , make sure you have Microsoft Visual C++ installed in your computer (14.0 or higher). Otherwise some modules may not get installed which will cause the application to crash. If you are not able to run the requirements, please type the required module without the version number. This will give you the program with latest version.
30+
31+
For windows installation
32+
```
33+
pip install -r requirements.txt
34+
```
1935

2036
**Running tests**
2137
<br>
2238
Make sure to activate the virtual environment first. Then later perform these tests.
2339
```
2440
python3 -m pytest backend/tests
2541
```
42+
For windows
43+
```
44+
python -m pytest backend/tests
45+
```
2646

2747
**Running the app and API**
2848
<br>
2949
Make sure to activate the virtual environment first. Then perform these tests.
3050
```
3151
python3 -m backend.app
3252
```
53+
For windows
54+
```
55+
python -m backend.app
56+
```
3357

3458
**Running a peer instance**
3559
<br>
@@ -41,6 +65,7 @@ export PEER=True && python3 -m backend.app
4165
**Run the frontend**
4266
<br>
4367
Make sure to navigate to frontend directory of python-blockchain
68+
Make sure to have react installed or at lease react-scripts.
4469
```
4570
npm run start
4671
```
@@ -50,6 +75,7 @@ Make sure to activate the virtual environment for python
5075
```
5176
export SEED_DATA=True && python3 -m backend.app
5277
```
78+
Unfortunately I couldn't find any matching shell command for Windows to run Seed data.
5379

5480
___
5581
## DEVELOPER'S IDEA
@@ -114,4 +140,4 @@ ___
114140

115141
This project wouldn't have been possible without the help of certain people who although unknowingly helped me to understand concepts of Blockchain and Cryptocurrency systems. The course link which I took is given below.
116142

117-
[Udemy course on Cryptocurrency systems](https://www.udemy.com/share/102sB6AEAec15UQ3wJ/)
143+
[Udemy course on Cryptocurrency systems](https://www.udemy.com/share/102sB6AEAec15UQ3wJ/)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.