I wanted to understand the whole idea behind blockchain so built this to clear concepts
-
Create a virtual environment
mkvirtualenv [envname]
ormkvirtualenv -p <python_version> <env_name>
-
pip3 install -r requirements.txt
-
Set FLASK_APP by
export FLASK_APP=app.py
-
Use Postman or cURL to play with the API (http requests)
-
This is what I referred to build this out and this is what the author may have used and reading through it was fun.
-
The following were very insightful:
-
Dockerize this API
-
Separation of concerns - move all the routes into a different file other than the main app file, basically use what Flask offers me