A decentralized space to preserve and share meaningful moments—forever. SnapChain uses blockchain and IPFS to ensure every memory remains verifiable,vtamper-proof, and yours. It's not just storage, it's permanence.
Follow these steps to get the SnapChain up and running locally:
-
Node.js (v14 or above):
A JavaScript runtime required for building and running the application.
📥 Download Node.js from here -
npm:
Node.js's package manager, typically installed alongside Node.js.
📘 Learn more about npm -
Metamask or another Ethereum wallet extension:
A browser extension for interacting with the Ethereum blockchain.
📥 Download Metamask from here -
Hardhat:
A development environment to compile, deploy, test, and debug Ethereum software.
📘 Learn more and get started with Hardhat here -
IPFS via Pinata:
A development environment to compile, deploy, test, and debug Ethereum software. A user-friendly IPFS pinning service to upload and manage media files securely on the distributed web..
📥 Sign up and get started with Pinata
Clone the project
git clone https://github.com/Mannan-Ali/SnapChaincd frontendInstall dependencies
npm installStart the Frontend Server
npm run dev- Navigate to the Smart Contract folder in another terminal :
cd "Smart Contract"- Install the dependencies for the smart contract:
npm install- In one terminal or bash window, start the Hardhat local node:
npx hardhat node- In another terminal or bash window, deploy the smart contract using Hardhat Ignition:
npx hardhat ignition deploy ignition/modules/Snaps.js --network localhostRun Tests(Optional for testing)
Navigate to the Smart Contract folder and run the following command if you want to test the Smart Contract before deployment.
npx hardhat test