The purpose of this project is to develop python application for learning how the blockchain works.
- Perform the relevant configuration on your computer.
- Download the code and manage it locally
- Git pull origin
- Create a branch to work on it
- Git branch -M "NEW_BRANCH"
You will need the following instruction to work:
Visual Studio Code (or similar), Python > 3.6.9
pip install Flask~=1.1
pip install requests~=2.22
-
Run application
-
On Windows
python application.py
-
On Linux / macOS
python3 application.py
-
Note: It's recommended to work on isolated environment when you work with Python's apps to avoid problems with other global dependencies. You can use this simple guide to configure your virtual environment.
On Windows
-
Create virtual environment
python -m venv .venv
-
Activate environment
.\.venv\Scripts\activate.ps1
On Linux / macOS
-
Create virtual environment
python3 -m venv .venv
-
Activate environment
../.venv/bin/activate
Once you have activated your virtual environment, you'll see (.venv)
in your command prompt. While your virtual environment it's activated, you can install dependencies and start the application in isolated way.