Boilerplate
Simple monorepo you can use as a template to start developing your dApp with Semaphore.
Install / Use
/learn @semaphore-protocol/BoilerplateREADME
| 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:
git clone https://github.com/<your-username>/<your-repo>.git
and install the dependencies:
cd <your-repo> && yarn
📜 Usage
Copy the .env.example file as .env:
cp .env.example .env
and add your environment variables or run the app in a local network.
Local server
You can start your app locally with:
yarn dev
Deploy the contract
- Go to the
apps/contractsdirectory and deploy your contract:
yarn deploy --semaphore <semaphore-address> --network sepolia
-
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:
yarn verify <your-contract-address> <semaphore-address> --network sepolia
Note
Remember to set the Etherscan API Key in your .env file.
Code formatting
Run Prettier to check formatting rules:
yarn prettier
or to automatically format the code:
yarn prettier:write
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
