Semaphore Boilerplate
| The repository is divided into two components: web app and contracts. The app allows users to create their own Semaphore identity, join a group and then send their feedback anonymously (currently on Sepolia). |
|---|
Install
Use this repository as a Github template.
Clone your repository:
and install the dependencies:
Usage
Copy the .env.example file as .env:
and add your environment variables or run the app in a local network.
Local server
You can start your app locally with:
Deploy the contract
- Go to the
apps/contractsdirectory and deploy your contract:
-
Update the
apps/web-app/.env.productionfile with your new contract address and the group id. -
Copy your contract artifacts from
apps/contracts/artifacts/contractsfolder toapps/web-app/contract-artifactsfolder.
Note
Check the Semaphore contract addresses here.
Verify the contract
Verify your contract on Etherscan:
Note
Remember to set the Etherscan API Key in your .env file.
Code formatting
Run Prettier to check formatting rules:
or to automatically format the code: