interface icon indicating copy to clipboard operation
interface copied to clipboard

How do I run this project?

Open tfrg opened this issue 1 year ago • 5 comments

Terminal current path

/interface

yarn install
스크린샷 2024-07-02 오후 4 39 41

I'm not getting the package to install. How do I get this project running?

I've looked in the issues, but there is no solution.

tfrg avatar Jul 02 '24 07:07 tfrg

Steps to run this

  1. create __generated__ folder in a apps/web/utils/__generated__
  2. run yarn install
  3. run yarn postinstall

0xkrotus avatar Jul 05 '24 15:07 0xkrotus

Thank you.

but, not working

yarn postinstall
screenshot 1 screenshot 2

tfrg avatar Jul 08 '24 01:07 tfrg

Thank you.

but, not working

yarn postinstall

screenshot 1 screenshot 2

Hi, I think this comment will help you, cause it works for me.

Mojicode avatar Aug 05 '24 02:08 Mojicode

https://www.sanghun.xyz/running-uniswap-frontend-locally-for-testnet-environment-en/

git clone https://github.com/Uniswap/interface
cd interface
git fetch --all --tags
git checkout tags/web/5.19.3
mkdir apps/web/src/utils/__generated__  # https://github.com/Uniswap/interface/issues/7631
# create .env.defaults file under project root.
# https://github.com/Uniswap/interface/issues/7678
cat <<EOL > .env.defaults
ALCHEMY_API_KEY='key'
AMPLITUDE_EXPERIMENTS_DEPLOYMENT_KEY='key'
APPSFLYER_API_KEY='key'
APPSFLYER_APP_ID="123"
FIAT_ON_RAMP_API_URL='https://api.uniswap.org'
MOONPAY_API_KEY='key'
MOONPAY_API_URL='https://api.moonpay.com'
MOONPAY_WIDGET_API_URL='https://api.moonpay.com'
INFURA_PROJECT_ID="123"
ONESIGNAL_APP_ID="123"
QUICKNODE_BNB_RPC_URL='https://api.uniswap.org'
SENTRY_DSN='http://sentry.com'
SHAKE_CLIENT_ID="123"
SHAKE_CLIENT_SECRET="123"
SIMPLEHASH_API_KEY='key'
SIMPLEHASH_API_URL='https://api.simplehash.com'
STATSIG_PROXY_URL='https://api.statsig.com'
TEMP_SCANTASTIC_URL='https://api.uniswap.org'
TRADING_API_KEY='key'
TRADING_API_URL='https://api.uniswap.org'
UNISWAP_API_KEY='key'
UNISWAP_API_BASE_URL='https://api.uniswap.org'
UNISWAP_APP_URL='https://app.uniswap.org'
WALLETCONNECT_PROJECT_ID="123"
UNITAGS_API_URL='https://api.uniswap.org/unitags'
FIREBASE_APP_CHECK_DEBUG_TOKEN='token'
EOL

yarn
yarn web start

sanghunka avatar Aug 07 '24 03:08 sanghunka

Steps to run this

1. create `__generated__`  folder in a  `apps/web/utils/__generated__`

2. run `yarn install`

3. run `yarn postinstall`

Postinstall is automatically run during the second step, so the third step is unnecessary.

danilych avatar Oct 22 '24 08:10 danilych

Hi, we've recently updated this package to make local development easier as well as updated our contribution guide.

Note that you will need to add the generated folder for now after git cloning the repo: https://github.com/Uniswap/interface/discussions/7718

plondon avatar Apr 30 '25 19:04 plondon