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.
# 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
# Change directory
cd frontend
# Install dependencies
yarn install
# Set up environment variables
cp env/.env.example env/.env.local
# Start frontend
yarn dev
# 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
- Polygon Testnet (Mumbai) - 0xA29111ef1bb594f6f12e4C2b570574bEb6f39F1d
- Get test tokens at Polygon Facuet
- 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.