You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: README.md
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,31 +5,55 @@
5
5
6
6
**Activate the virtual environment**
7
7
<br>
8
+
Make sure you create a virtual python environment using the command given as follows
9
+
```
10
+
python3 -m venv blockchain-env
11
+
```
8
12
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
+
9
14
```
10
15
source blockchain-env/bin/activate
11
16
```
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
+
```
12
22
13
23
**Installing all the requirements**
14
24
<br>
15
25
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.
16
26
```
17
27
pip3 install -r requirements.txt
18
28
```
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
+
```
19
35
20
36
**Running tests**
21
37
<br>
22
38
Make sure to activate the virtual environment first. Then later perform these tests.
23
39
```
24
40
python3 -m pytest backend/tests
25
41
```
42
+
For windows
43
+
```
44
+
python -m pytest backend/tests
45
+
```
26
46
27
47
**Running the app and API**
28
48
<br>
29
49
Make sure to activate the virtual environment first. Then perform these tests.
Make sure to navigate to frontend directory of python-blockchain
68
+
Make sure to have react installed or at lease react-scripts.
44
69
```
45
70
npm run start
46
71
```
@@ -50,6 +75,7 @@ Make sure to activate the virtual environment for python
50
75
```
51
76
export SEED_DATA=True && python3 -m backend.app
52
77
```
78
+
Unfortunately I couldn't find any matching shell command for Windows to run Seed data.
53
79
54
80
___
55
81
## DEVELOPER'S IDEA
@@ -114,4 +140,4 @@ ___
114
140
115
141
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.
116
142
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