Skip to content

POCO is a public blockchain app to transparently store product attributes information in order to facilitate authentication, compliance check and traceability of physical products.

License

Notifications You must be signed in to change notification settings

poco-dapp/poco-dapp

Repository files navigation

POCO Dapp

POCO is a public blockchain app to transparently store product attributes information in order to facilitate authentication, compliance check and traceability of physical products.

Since the app uses a public blockchain and filesystem - Polygon and IPFS, all product information and documents submitted will always be available without restriction.

Stack

Local Setup

Deploy contracts to localhost network

# Instal Dependencies
yarn install

# Set up environment variables
cp .env.example .env

# Run localhost chain
yarn hardhat node

# Compile and deploy contracts and generate the abi for frontend
yarn hardhat deploy --network localhost

Run frontend

# Change directory
cd frontend

# Install dependencies
yarn install

# Set up environment variables
cp env/.env.example env/.env.local

# Start frontend
yarn dev

Setup local Graph and IPFS nodes

# Clone the graph-node
git clone git@github.com:graphprotocol/graph-node.git

# Run the dockerized Graph and IPFS nodes
cd docker && docker-compose up -d

Note: To setup the CORS headers for local IPFS node, follow this solution

# Update IPFS config
docker-compose exec ipfs ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'

# Restart IPFS node
docker-compose restart ipfs

Deployments

Contract Addresses

Web Interface

To-dos

  • Look for a simple wallet app for organizations to allow them to easily use this dapp. Ideally, the wallet app should be open-source and non-custodial and have some of the requisite enterprise-level features such as mult-user accounts, audit logs and access control.

Appreciate any feedback to improve and further develop this dapp - Twitter / Discussions

About

POCO is a public blockchain app to transparently store product attributes information in order to facilitate authentication, compliance check and traceability of physical products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published