Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InventoryCS. MVP dApp for Credits hackathon. #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,282 changes: 6,282 additions & 0 deletions inventorycs/API/API.js

Large diffs are not rendered by default.

1,143 changes: 1,143 additions & 0 deletions inventorycs/API/ContractExecutor.js

Large diffs are not rendered by default.

717 changes: 717 additions & 0 deletions inventorycs/API/Signature_4_0.js

Large diffs are not rendered by default.

5,806 changes: 5,806 additions & 0 deletions inventorycs/API/api_types.js

Large diffs are not rendered by default.

529 changes: 529 additions & 0 deletions inventorycs/API/executor_types.js

Large diffs are not rendered by default.

767 changes: 767 additions & 0 deletions inventorycs/API/general_types.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions inventorycs/API/jquery-ui.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions inventorycs/API/jquery.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions inventorycs/API/nacl.min.js

Large diffs are not rendered by default.

1,557 changes: 1,557 additions & 0 deletions inventorycs/API/thrift.js

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions inventorycs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# InventoryCS

Entry for the [Credits online-hackathon](https://opengift.io/credits-hackathon/).

InventoryCS is a dApp developed on the [Credits](https://www.credits.com) blockchain.
Credits is the fastest and most scalable public blockchain platform for development and execution of Decentralized Applications based on blockchain technology in a number of application spheres. It is the first platform to solve blockchain scalability problem without compromising two other components: security and decentralization.

The Credits platform is characterized by the following features:
- High transaction processing speed - more than 1 million transactions per second;
- The minimum transaction processing time is from 0.01 seconds per transaction;
- Very low price - a differentiated rate from about 0.001 USD;
- Smart contracts that have new advanced capabilities and tools.

The combination of InventorCS with the Credits blockchain offers the following:
- High secured inventory data. All data is carried out on the Credits blockchain, making it impossible to forge data;
- Decentralization: the inventory is not controlled by a single entity;
- Tracking: in the process of managing the inventory, the data is checked and verified at every checkpoint;
- Accuracy: the loss of data will not be a problem as the data is spread accros the public ledger.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Requirements

Requirements to run this dApp

```
- Internet browser (Chrome or Firefox recommended).
- Internet connection.
- Access to a Credits node.
- Have access to a wallet on the Credits network with some balance.
```

### Installing

To run this dApp locally, you need to download a copy from github first.
Extract files to a self-chosen location.
Open index.html.
For test purposes it is possible to change the ip and port of the node you want to connect to. The default is the node ip and port given by the Credits team.
You're good to go.

### Online version

Available on [http://timok93.22web.org/](http://timok93.22web.org/)

### Functions MVP version

- Logging into the dApp with your public and private key by:
- Entering them manually;
- Selecting a keyfile on your system;
- Drag your keyfile into the drop zone;
- Generating a new keypair.
- Select inventory smart contract.
- Deploy new smart contract.
- Add/edit/delete products.
- Enter changelist mode to save multiple changes in one click.
- Sort products on ID, description or quantity.

## Compatibility

This dApp is created on testnet 3.4. Might not work for newer versions of the [Credits](https;//www.credits.com) testnet which are expected. In case it does not work with a new release, I will post an update as soon as possible.

Small screen devices are not yet supported.

## Future updates
- The possibility to enter more details of products, such as order quantity, supplier, minimum quantity.
- Automatically order products at supplier when products reach a minimum level set by user.
- Giving suppliers access to your smart contract by entering their public key when setting up suppliers.
- Suppliers can check which products are below minimum quantity and set status of product to 'ordered'.
Loading