npm run start
npm run build
docker-compose up
Local URL: http://localhost:19006
This project based on the create-react-app, to build using docker-compose:
docker-compose run frontend npm run build
Environment variables are configured via .env
files.
The .env file in the root contains the defaults.
You may overwrite them for local development, by creating an additional .env.local
You may overwrite them for the production build, by creating an additional .env.production
REACT_APP_RATES_HISTORY_ENDPOINT - enable rates history endpoint support, optional
REACT_APP_ENABLE_TESTNET - enables markets that are on a network flagged as testnet
This interface includes libraries to connect with fiat on-ramp services. They are disabled by default and it is the sole responsibility of the users running the interface to provide credentials in order the run them.
REACT_APP_ONRAMP_API_KEY - Ramp network API key, disabled by default (optional)
REACT_APP_TRANSAK_API_KEY - Transak API key, disabled by default (optional)
REACT_APP_ENABLE_NASH - enabled by default
REACT_APP_AUTHEREUM_API_KEY - Authereum wallet API key, disabled by default (optional)
REACT_APP_PORTIS_DAPP_ID - Portis wallet API key, disabled by default (optional)
REACT_APP_FORTMATIC_KEY_MAINNET - Fortmatic wallet production API key(for mainnet), disabled by default (optional)
REACT_APP_FORTMATIC_KEY_TESTNET - Fortmatic wallet development API key(for testnets), disabled by default (optional)
It is possible to configure the interface to integrate with standard bug tracking (Sentry) and analytics services (GTM). Both are disabled by default and we put emphasis on using them with responsibility, with users' privacy always in mind.
REACT_APP_GTM_ID - Google tag manager id (optional)
REACT_APP_SENTRY_DSN - Sentry dsn url (optional)
If you want to run the app against a custom fork set corresponding params in the browser localStorage
forkEnabled // enables forks
forkBaseChainId // chainId of the underlying chain (determines which markets will be forked)
forkChainId // chainId you will set in metamask
forkRPCUrl // the url of the http fork RPC
forkWsRPCUrl // the url of the ws fork RPC
npm run gql-gen