Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximevaillancourt/trace
Supply chain transparency platform proof-of-concept based on the Ethereum blockchain ✍️
https://github.com/maximevaillancourt/trace
blockchain dapp decentralized ethereum javascript proof-of-concept react reactjs solidity supply-chain transparency truffle web3
Last synced: 3 months ago
JSON representation
Supply chain transparency platform proof-of-concept based on the Ethereum blockchain ✍️
- Host: GitHub
- URL: https://github.com/maximevaillancourt/trace
- Owner: maximevaillancourt
- License: mit
- Archived: true
- Created: 2018-04-16T13:58:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T01:45:53.000Z (about 5 years ago)
- Last Synced: 2024-06-28T14:34:32.594Z (4 months ago)
- Topics: blockchain, dapp, decentralized, ethereum, javascript, proof-of-concept, react, reactjs, solidity, supply-chain, transparency, truffle, web3
- Language: JavaScript
- Homepage:
- Size: 1.87 MB
- Stars: 64
- Watchers: 8
- Forks: 46
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
### ⚠️ **This project is not supported anymore. Here be dragons!** ⚠️
------------
![logo](https://user-images.githubusercontent.com/8457808/38818082-db3aea62-4167-11e8-8e59-7af47131c087.png)
# Trace
> A transparent supply chain management platform with end users in mind.
Trace is a decentralized application based on the Ethereum blockchain aiming to
let consumers see the data behind the products they buy every day. It currently
allows industry experts to add products to the app, as well as create certifications
that can be added to products. A mobile companion app (not developed yet) would
allow scanning Trace QR codes placed on the actual products to see the data
on-premise (e.g. at the grocery store).Keep in mind that **this is a proof of concept**. It is *not* production ready by any means. However, we do invite you to play around with the project and use it as you see fit. There are some rough edges, so we definitely appreciate your help in improving the platform.
This project was developed under the supervision of Bessam Abdulrazak, director of the [Ambient Intelligence Lab](https://ami.usherbrooke.ca/welcome/en-lab/) at Université de Sherbrooke.
Made using the Truffle toolkit, React.js, Redux, and Webpack.
Logo design by [Laurence Mailhiot](https://twitter.com/mailhiotlaur).
## Screenshot
![scrot](https://user-images.githubusercontent.com/8457808/38819232-d35aed1e-4168-11e8-90e7-1d74fe726729.png)
## Installing / Getting started
0. Clone the repo:
```shell
git clone https://github.com/maximevaillancourt/trace.git
cd trace
```
1. Install the Truffle toolkit globally and install project dependencies:```shell
npm install -g [email protected] && npm install
```2. In a new shell, start the Truffle development console:
```shell
truffle develop
```3. In the Truffle console, compile and deploy the smart contracts:
This will effectively reset your local blockchain, meaning that all existing transactions will be deleted.
```shell
migrate --reset
```4. Back in a regular shell, start the Webpack server:
```shell
npm run start
```A browser window should then open automatically at `http://localhost:3000` (or whatever port you set manually). If you see the Trace home page, you're ready to go. Otherwise, if the page is stuck on "Waiting for Web3...", proceed to steps 5 and 6.
5. Install the [MetaMask browser extension](https://metamask.io/). Once installed, click on the MetaMask icon, then use the "Import Account" feature to create an account from a private key. Copy the first private key from the first few lines of output of `truffle develop` and paste it into the "Private Key" field in Metamask.
6. Connect to your private network. Click the network chooser (it will likely say "Main Ethereum Network" at the top), and choose "Custom RPC". In there, enter the URL that matches the configuration in the `truffle.js` file (which should be `http://localhost:9545` by default), then click "Save".
7. Refresh the page in your browser, and you should be good to go!
## Developing
To change something in the "smart contracts" side of things, you need to compile your contracts every time you change them
using the following command in the Truffle console:```shell
migrate --reset
```As for the React front-end, the Webpack server should refresh the page in your browser automatically when a change is detected.
### Building
Once you're ready to bundle the front-end app, use the `build` script to bundle everything together.
```shell
npm run build
```### Deploying
You're free to deploy the generated front-end bundle wherever you see fit. As for the smart contract, you can deploy it through Ganache/Truffle by adding a new network configuration. See [this guide](http://truffleframework.com/tutorials/deploying-to-the-live-network) for more information.
## Features
* Add a product to the platform
* Search for a particular product
* Add certifications to products (e.g. "biological", "non-GMO", etc.)
* Browse a product's version history
* See the product's previous positions on a map
* Combine products into one
* Split a product into many (WIP)# Contributing
For bug fixes, documentation changes, and small features:
1. [Fork it](https://github.com/maximevaillancourt/trace/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`) using [GPG signing](https://help.github.com/articles/signing-commits-using-gpg/)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull RequestFor larger new features: do everything as above, but first also make contact with the project maintainers to be sure your change fits with the project direction and you won't be wasting effort going in the wrong direction
## Links
- Repository: https://github.com/maximevaillancourt/trace
- Issue tracker: https://github.com/maximevaillancourt/trace/issues
- Related projects:
- Provenance: http://provenance.org/
- SCTS: https://github.com/AtrauraBlockchain/scts
- Phinomenal: https://github.com/phi-nomenal/phi-nomenal
- Sawtooth Lake traceability example: https://provenance.sawtooth.me/## Licensing
The code in this project is licensed under MIT license. See the [LICENSE](LICENSE).