Skip to content

Commit d1afb9b

Browse files
committed
Organize the application
1 parent aee7872 commit d1afb9b

8 files changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**Activate the virtual environment**
2+
```
3+
source blockchain-env/bin/activate
4+
```
5+
6+
**Install all packages**
7+
```
8+
pip install -r requirements.txt
9+
```

backend/__init__.py

Whitespace-only changes.

backend/blockchain/__init__.py

Whitespace-only changes.

block.py renamed to backend/blockchain/block.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from backend.util.crypto_hash import crypto_hash
12
import time
23

34
from crypto_hash import crypto_hash
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from block import Block
1+
from backend.blockchain.block import Block
22

33
class Blockchain:
44
"""

backend/util/__init__.py

Whitespace-only changes.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest==5.1.2

0 commit comments

Comments
 (0)