Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.28 KB

README.md

File metadata and controls

59 lines (42 loc) · 2.28 KB

frontend

Prerequisites

Watchman

Running

$ yarn start

Proxy

To point to an existing deployed backend, update the server.proxy field in the vite.config.ts

Index: packages/frontend/vite.config.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts
--- a/packages/frontend/vite.config.ts	(revision 7146b8daa59a589b08b66a5a76f3e2c3f9b9bb48)
+++ b/packages/frontend/vite.config.ts	(date 1682354849648)
@@ -35,7 +35,7 @@
   },
   server: {
     proxy: {
-      "/graphql": "http://0.0.0.0:4001/",
+      "/graphql": "https://nouns-agora-dev.agora-dev.workers.dev/",
     },
   },
 });

Local development

Set the VITE_DEPLOY_ENV env variable to dev or prod if you want to respectively point the frontend to Sepolia or Mainnet environments.

Both the deployed dev backend and the default backend configuration ENVIRONMENT=dev point to the Sepolia testnet contracts.

Note: If the backend is running locally, VITE_DEPLOY_ENV should have the same value as ENVIRONMENT. If it's pointing to an existing deployed backend, VITE_DEPLOY_ENV should be set based on the backend's env.

Testnet environment

The testnet environment is made of the following contracts:

Main differences from mainnet:

  • You can mint NounsTokens for free by calling the function mint(address) on Etherscan. This function can be called by anyone and mints 1 Noun to the specified address.
  • Only 1 Nouns is needed to create proposals, instead of the 2 needed on real Nouns on mainnet. Proposals can be created on Etherscan by calling propose on the Governor contract