Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
/ noobcash Public archive
forked from mariosker/noobcash

Just another simple blockchain implementation.

License

Notifications You must be signed in to change notification settings

gmkazel/noobcash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noobcash

Just another simple blockchain implementation.

Demo

API Reference

Get balance of your wallet

  GET /balance

View transactions of the last block in the blockchain

  GET /transactions

Create a transaction

  POST /transactions
Parameter Type Description
node_id int Required. Id of the receiver node
amount int Required. Amount of BTC to send

Environment Variables

To run this project, you will need to add the following environment variables to your .env file or change the config.py file.

ENV

HOST

PORT

IS_BOOTSTRAP

BOOTSTRAP_HOST

BOOTSTRAP_PORT

MAX_USER_COUNT

BLOCK_CAPACITY

MINING_DIFFICULTY

Run Locally

Clone the project

  git clone https://github.com/mariosker/noobcash

or

  gh repo clone mariosker/noobcash

Go to the project directory

  cd noobcash

Install dependencies

  pip install -r backend/requirements.txt
  pip install -r cli/requirements.txt

Change the env/ config file and start the server

  python backend/app.py

You can also install it via docker:

cd infra
docker compose up

License

MIT

About

Just another simple blockchain implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Dockerfile 0.3%