/elf-council-frontend

Frontend repository for governance

Primary LanguageCSSGNU General Public License v3.0GPL-3.0

Getting Started

First, some setup:

# install npm dependencies
npm ci
# copy the tokenlist and addresses jsons from the testnet
npm run copy-testnet

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

You'll also need to follow the README instructions for the elf-council-merkle and elf-council-testnet repos. In total you'll need 4 terminal windows running processes. Here is a diagram to help: Deveopment Setup

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.