Skip to content

Blockchain for a cryptocurrency from scratch using python.

Notifications You must be signed in to change notification settings

MrRobot420/crypto-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain for a cryptocurrency from scratch using Python.


Set up a venv:

  1. create the venv:
python3 -m venv <env-name>
  1. activate the env:
source <env-name>/bin/activate
  1. show which env you are using atm (optional):
echo $VIRTUAL_ENV

Install all packages

pip3 install -r requirements.txt

Run the tests

Make sure to activate the virtual environment.

python3 -m pytest backend/tests

Run the application and API

Make sure to activate the virtual environment.

python3 -m backend.app

Run a peer instance

Make sure to activate the virtual environment.

export PEER=True && python3 -m backend.app

Run the frontend

In the frontend directory:

npm run start

Seed the backend with data

Make sure to activate the virtual environment.

export SEED_DATA=True && python -m backend.app

Random note:

  • Set your code formatting: cmd + , = Settings
  • search for formatting
  • change to "format on save"
  • YOu have to provide a formatter first! (like prettier)

About

Blockchain for a cryptocurrency from scratch using python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published