Code Monkey home page Code Monkey logo

web-blockchain's Introduction

web-blockchain

Blockchain-based ledger, with Streamlit web interface.


Overview

Web-blockchain is an application which allows the user to view, add, and validate blocks on a blockchain, via a web interface.

Assumptions & Process

Web-blockchain applicaton will use python, and highlight the Streamlit web interface library, along with the use of Python classes as they pertain to modeling Record, Block and Chain dataclasses.

High-level steps:

  1. Create a Record data class which will encapsulate the data in the transaction of the block.
  2. Update the Block class to work with Record data.
  3. Add Web UI functionality via Streamlit which handles sender, receiver and amount, and works with the Record data type.

Submission:

  • Final web application
  • videos of testing and running application (see below)

Web Application Testing and Validation

AppTesting App Testing

Blockchain Validation Blockchain Validation

Chain Inspector Chain Browser


Technologies

This challenge uses python 3.7 and the following modules:

See installation and usage below for specifics.


Installation

You will need Python 3.7, that supports for this application to run. An easy way to install python 3.7 is to download and install Anaconda. After installing anaconda, open a terminal/command-prompt, and setup a python 3.7 environment, and then activate it like so:

# create an anaconda python 3.7 environment
# name can be any friendly name to refer to your environment, eg 'dev'
conda create --name dev python=3.7 anaconda

# activating the environment
conda activate dev

# use pip to install the above modules, eg:
pip install dateutil
...etc...

Usage

To run the application, use the CLI and launch streamlit like:

# activating the environment
conda activate dev

# change to application directory
cd <repo_root>/app

# launch streamlit application
streamlit run pychain.py


Contributors

David Lopez


License

MIT

web-blockchain's People

Contributors

sububer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.