This is the code for the NeoKingdom DAO dapp
pnpm i
pnpm run dev
vercel link
vercel env pull --environment=production|staging .env.local
Note: if you want to change from i.e. teledisko to neokingdom, just re-run vercel link
and choose dapp-neokingdom
as project name.
POSTGRES_LOCAL=true
in your .env
filedocker compose -f local-compose.yaml up
npx drizzle-kit push
You can now run the app connected to your local database.
./lib/graphql/subgraph/queries/
folderpnpm codegen:subgraph
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
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:
pnpm i -g vercel@latest
if not already installedvercel link
and connect it to our existing projectpnpm featureflags:generate
to generate the updated type definitionYou 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:
pnpm e2e
pnpm e2e:ui