⚙️ Built using NextJS, Scaffold-Eth-2, Anon Aadhaar, The Graph Protocol, Hardhat, Wagmi, Viem, and Typescript.
🚀 CivicFlow is a decentralized application that allows users to create and manage their digital identity on the blockchain. It uses the Anon Aadhaar protocol to create a unique digital identity for each user. Users can use their digital identity to access various services and applications on the blockchain.
Before you begin, you need to install the following tools:
- Node (>= v18.17)
- Yarn (v1 or v2+)
- Git
To get started with CivicFlow, follow the steps below:
- Clone this repo & install dependencies
git clone https://github.com/scaffold-eth/scaffold-eth-2.git
cd scaffold-eth-2
yarn install
- Run a local network in the first terminal:
yarn chain
This command starts a local Ethereum network using Hardhat. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in hardhat.config.ts.
- On a second terminal, deploy the test contract:
yarn deploy
This command deploys a test smart contract to the local network. The contract is located in packages/hardhat/contracts and can be modified to suit your needs. The yarn deploy command uses the deploy script located in packages/hardhat/deploy to deploy the contract to the network. You can also customize the deploy script.
- On a third terminal, start your NextJS app:
yarn start