NeokingdomDAO / dapp

https://dapp-neokingdom.vercel.app/
0 stars 1 forks source link

Welcome to the NeoKingdom DAO dapp

This is the code for the NeoKingdom DAO dapp

Getting started

pnpm i
pnpm run dev

Get env variables locally

Note: if you want to change from i.e. teledisko to neokingdom, just re-run vercel link and choose dapp-neokingdom as project name.

Run a local Postgres instance

You can now run the app connected to your local database.

How to add a Subgraph query

If the schema on https://api.neokingdom.org/subgraphs/name/NeokingdomDAO/vigodarzere is not working - as the server is down - try with https://api2.neokingdom.org/subgraphs/name/NeokingdomDAO/vigodarzere. You can find in ./codegen-subgraph.ts

Feature flags

We use Hypertune to handle feature flags in our dapp. To update or add a new flag you need to be added to Hypertune by your teammates.

To be able to override feature flags locally using the Vercel Toolbar you need to:

How to add or update a feature flag

How to run e2e tests

You can run e2e tests with Playwright in two different ways. In both case remember to start the local server with pnpm dev.

The first time you should run pnpm e2e:init before running e2e tests. After that you can use one of the following options: