This is a Next.js project bootstrapped with create-next-app
.
Getting your environment variables You can only do this if you have access to UMA's vercel projects.
You need to install vercel-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:
npm run dev
# or
yarn dev
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.
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.