GithubHelp home page GithubHelp logo

joel-huang / blocktrace-company Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 964 KB

Package including a front-end web app and a back-end server, for companies to pull user information from the Hyperledger blockchain to the remote company database.

Home Page: https://joel-huang.github.io/blocktrace-company/index.html

CSS 24.50% JavaScript 37.00% HTML 32.49% Python 6.01%

blocktrace-company's Introduction

blocktrace-company

Maintainability Test Coverage

Web application and back-end code for companies to use to interface with the Hyperledger blockchain. This package allows any organization to view their users' personal information, sourced from the encrypted public ledger. Front- and back-end sources are included in frontend and submoduleCompanyBackendServer respectively.

Introduction

frontend contains the web application that can access the current instance of the company's customer data. Authorized staff are able to view and delete entries from the company's database through this web application. The demo is hosted at https://joel-huang.github.io/blocktrace-company. frontend includes a login page and the main webapp, and was built with bootstrap CSS elements and a custom styled table.

CompanyBackendServer is a flask back-end application written in Python 3. System tests written in Java and Python are also included. The demo server is hosted at https://shielded-bayou-99151.herokuapp.com, and includes a PostgreSQL database of its customer data along with its staff accounts. Functionality is exposed through the flask RESTful API.

How to use

frontend

  • Navigate to the demo web app and login as user1 or user2 with the demo password blocktrace. You should be able to login if no other users are currently logged in.
  • Click on refresh database, which sends an authenticated HTTP POST request to the CompanyBackendServer, and loads it in a heavily CSS-ed table.
  • To remove a user from the company's database, click on the remove icon on the last column of each row. Confirmation will be requested as this process is non-reversible.

backend

  • Host the flask server on something like Heroku. You can access the PostgreSQL database using the methods in the /Tests folder to create new staff users, and for debugging purposes.

blocktrace-company's People

Contributors

joel-huang 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.