Skip to content

valtech-sd/lifecycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

Lifecycle is a web3-enabled DApp (Decentralized App) empowering brands to showcase their products on the Ethereum blockchain. Digital twins of physical luxury handbags are minted as Non-Fungible Tokens (NFTs). Lifecycle allows users to manage and transfer their NFTs, brands to keep a ledger of repairs, and other custom events throughout the product's lifecycle. This allows brands to create trust in an industry rife with counterfeit.

Repository Organization

This repository consists of a Create React App Rewired front end, and a subdirectory, nft-app-eth-3-31, containing the NFT smart contract and associated functionality. Within nft-app-eth-3-31/scripts, one may deploy a new version of the smart contracts, mint and NFT, or repair and NFT. Currently, the only way to run these smart contract methods are on the CLI, or within Etherscan's write/read interface.

Requirements

To interact with the DApp, one must have acess to a cryptocurrency wallet.

Development

  1. Install the Chrome MetaMask Extension.
  2. Once installed, select the Rinkeby Testnet in the MetaMask Extension.
  3. Fund the wallet with test ETH. This faucet allows easy funding of test ETH.
  4. User activities such as authentication, NFT transfer trasactions prompts the MetaMask popup to complete the transaction on the blockchain.

Production

  1. In production, the DApp must be accessed via the MetaMask native browser.
  2. Make sure to have test ETH in the MetaMask wallet, and the Rinkeby Testnet selected.

Originally, WalletConnect enabled deeplinks, allowing users to use the DApp in native browsers such as Chrome, Firefox, Safari. Right now, there is an active issue with MetaMask's Mobile App that is being monitored. Once MetaMask resolves the issue , our DApp should be accessible in native browsers, but for now the MetaMask browser must be used.

Setup

Install Dependencies

npm i

Start Development Server

npm run start

Deployment

  1. Run npm run build
  2. Copy all files and subdirectories of /build and paste into /docs, replacing the previous contents of /docs with the new build files.
  3. In /docs/index.html, manually remove all references to /lifecycle (there should be 8 occurences in a file find/replace). Because of how the app is deployed via Github Pages, we need to remove the /lifecycle part of all relative paths in this file.
  4. Commit and push to main branch.
  5. Github Pages will automatically initiate a new deploy to https://lifecycle.valtech.engineering/

Useful Resources

About

This Proof-of-Concept allows brands to publish Non-Fungible Token (NFTs) representing a digital twin of physical products. In this app, the NFTs are associated with luxury handbags. The app allows users to view and exchange their handbag NFT in web3-enabled browsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors