Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umaprotocol/voter-dapp-v2
https://github.com/umaprotocol/voter-dapp-v2
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/umaprotocol/voter-dapp-v2
- Owner: UMAprotocol
- Created: 2022-06-24T08:46:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T10:35:02.000Z (7 months ago)
- Last Synced: 2024-04-22T11:43:23.825Z (7 months ago)
- Language: TypeScript
- Homepage: voter-dapp-v2.vercel.app
- Size: 4.8 MB
- Stars: 2
- Watchers: 8
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
**Getting your environment variables**
You can only do this if you have access to UMA's vercel projects.You need to install [vercel-cli](https://vercel.com/docs/cli).
Then run `vercel link`, and follow the prompts to link the UMA->voter-dapp-v2 project.
Once linked run `vercel env pull .env.local`. This will pull a file down which has development environment variables.
Next, run the development server:
```bash
npm run dev
# or
yarn dev
```## Generating the Approved Identifiers Table
We use a JSON file to look up titles, descriptions and URLs for approved price identifiers for display in the UI. The list of approved identifiers can be found [in our docs](https://docs.uma.xyz/resources/approved-price-identifiers).
These approved identifiers are updated periodically in the docs, and when this happens, the JSON file will need to be re-generated.
To generate the JSON file, run the following command in the root directory of the project:
`yarn update-approved-identifiers`
This will download the raw file of the approved identifiers from the UMA docs (on GitHub), and then re-generate a JSON file.