Coder Social home page Coder Social logo

wivtech / supply-chain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimmychu0807/substrate-front-end-template

0.0 1.0 2.0 1.21 MB

Web Application of Supply Chain by WiV Technologies

Home Page: https://wiv.io

HTML 49.81% JavaScript 48.80% Dockerfile 0.26% Makefile 1.13%

supply-chain's Introduction

WiV Supply Chain - Client

A web user interface for Substrate-based WiV Supply Chain

The WiV Supply Chain Pallet allows users to securely collect and store information about each unique asset’s provenance and transaction history, whilst holding and insuring the unique asset in a professionally managed storage facility. In the current version a normal user can make:

  • Signup (settings 24 words secret seed)
  • Login (using a password set in the signup)
  • Logout (to remove any trace from the browser)
  • Add Assets (write a new assets in the blockchain, subject to approval from "Admin")
  • Transfer Assets (once it has been approved from Admin as valid asset)

Testing Users

Accounts balances initialization is coming in next milestones. For now, you can use "well-known" accounts for trying the application out. Please, use one of the seeds bellow when you register a new user in the sign-up form. These accounts have active deposit which is necessary for submitting transactions.

username: Alice
secret seed: bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice
account: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY

username: Bob
secret seed: bottom drive obey lake curtain smoke basket hold race lonely fit walk//Bob
account: 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty

username: Admin
secret seed: bottom drive obey lake curtain smoke basket hold race lonely fit walk//Admin
account: 5Cqg641taJcn16MmReBn3uA8ENfY6ZgXKqwEaLACRXC9Z8Ne

Admin is the super user enabled to approve the new assets.
An asset cannot be transferred when the approval is pending.

Running the UI

Run project with Docker

The simplest way to try it out is to install Docker with docker-compose and run:

make init && make start

Application data is persisted in a temporary folder /tmp/wiv and will be erased after reboot.

You can also use this file with docker stack instead of docker-compose.

In order to stop the application run:

make stop

Run project from sources

You don't need to perform these steps if you have launched the project with Docker. But if you want to hack on base of it, then you are welcome.

Install Node.js. Install Yarn. Install Ipfs. Install Mysql Server and configure an user: root password: Aszxqw1234 enabled to create database. The app will create the required database and tables.

Install dependencies from the project's folder with the following command:

yarn install

Usage

Run the local web server:

node index.js

Once the front-end server is running direct your browser to this URL: http://localhost:3000

supply-chain's People

Contributors

shawntabrizi avatar jimmychu0807 avatar joshorndorff avatar samuelelandi avatar kirillt avatar ltfschoen avatar damiradrovic1116 avatar riusricardo avatar dependabot[bot] avatar wheresaddie avatar jeffanthony avatar tbaut avatar

Watchers

James Cloos 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.