mirror of
https://github.com/social-tw/social-tw-website.git
synced 2026-01-09 15:38:09 -05:00
ce7ad9fde384d11547f58b07718b0f90e6375ad9
create-unirep-app
This is a demo app of a unirep attester. In this demo app, users can request data from the example attester. After transition, user can prove how much data he has.
See: Users and Attesters
1. Installation
npx create-unirep-app
yarn install
npm install -g circom
Then cd into the directory that was created.
2 Start with each daemon
2.1 Build the files
yarn build
2.2 Start a node
yarn contracts hardhat node
2.3 Deploy smart contracts
in new terminal window, from root:
yarn contracts deploy
2.4 Set up Twitter API Key
cp packages/relay/.env_example packages/relay/.env
Then fill in your Twitter API Key in packages/relay/.env
2.5 Start a relayer (backend)
yarn relay start
2.6 Start a frontend
in new terminal window, from root:
yarn frontend start
It will be running at: http://localhost:3000/
Description
Languages
TypeScript
98.2%
Circom
0.7%
CSS
0.3%
JavaScript
0.3%
Shell
0.2%
Other
0.2%