mirror of
https://github.com/zkitter/ui.git
synced 2026-01-08 20:57:59 -05:00
* update deps, replace npm by pnpm * do not use unknown in catch blocks * downgrade react deps * add more typings deps * ignore ts errors * fix ts errors * fix webpack confign * add missing deps * fix users.test.ts * fix web3-btn.test.tsx * fix drafts.test.ts * fix configureAppStore.test.ts * skip web3 test * skip more tests * update GH workflow * run build:ci instead of build in gh workflow * fix * Update README * Update .tool-versions, restrict node engine
1.4 KiB
1.4 KiB
Zkitter UI
This repo is home to website Zkitter.
Requirements
- Node 12.22+
- NPM 6.14+
Configurations
You can set configuration using environment variable or by creating a config.prod.json or config.dev.json file. You can see a sample of the config file here.
| Name | Description |
|---|---|
WEB3_HTTP_PROVIDER |
a valid Http provider (e.g. https://mainnet.infura.io/v3/<project-id>) |
ENS_RESOLVER |
contract address for ENS Public Resolver |
GUN_PEERS |
Seed peers to connect to for GunDB. |
ARB_HTTP_PROVIDER |
a valid Http provider to Arbitrum network (e.g. https://arbitrum.infura.io/v3/<project-id>). |
ARB_REGISTRAR |
Contract address for the Zkitter registration contract. |
ARB_ADDRESS |
The Arbitrum address to be used to fund onboarding. |
BASE_URL |
Base URL to the server. |
INDEXER_API |
URL to Zkitter API. |
INTERREP_API |
URL to Interep API. |
Build Instructions
Installation
npm i
# or
pnpm i --shamefully-hoist
Unit test
npm t
Run Developement Server
npm run dev
Production Build
npm run build
Run in production
npm start