Uniswap without TORN censoring
Go to file
Moody Salem 6112c8a2a2
a word
2020-05-08 13:51:47 -04:00
.github Cypress (#734) 2020-05-08 11:38:33 -04:00
cypress Ts almost everywhere (#736) 2020-05-08 13:48:05 -04:00
public Design tweaks (#717) 2020-05-06 15:34:06 -04:00
src Ts almost everywhere (#736) 2020-05-08 13:48:05 -04:00
.env Cypress (#734) 2020-05-08 11:38:33 -04:00
.gitignore Cypress (#734) 2020-05-08 11:38:33 -04:00
.prettierrc set up eslint and prettier; run prettier 2019-04-15 12:56:40 -04:00
cypress.json Cypress (#734) 2020-05-08 11:38:33 -04:00
LICENSE add tokens, do some summer cleaning (#368) 2019-07-23 13:50:31 -04:00
netlify.toml remove unused functions, typescript (#725) 2020-05-07 14:36:26 -04:00
package.json Types for react-router-dom, stop lazy loading each route (#735) 2020-05-08 12:05:52 -04:00
README.md a word 2020-05-08 13:51:47 -04:00
tsconfig.json Ts almost everywhere (#736) 2020-05-08 13:48:05 -04:00
yarn.lock Types for react-router-dom, stop lazy loading each route (#735) 2020-05-08 12:05:52 -04:00

Uniswap Frontend

Netlify Status Tests Styled With Prettier

An open source interface for Uniswap -- a protocol for decentralized exchange of Ethereum tokens.

Run Uniswap Locally

  1. Download and unzip the build.zip file from the latest release in the Releases tab.

  2. Serve the build/ folder locally, and access the application via a browser.

For more information on running a local server see https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server. This simple approach has one downside: refreshing the page will give a 404 because of how React handles client-side routing. To fix this issue, consider running serve -s courtesy of the serve package.

Develop Uniswap Locally

Install Dependencies

yarn

Configure Environment

Copy .env to .env.local and change the appropriate variables.

Run

yarn start

To run on a testnet, make a copy of .env named .env.local, change REACT_APP_NETWORK_ID to "{yourNetworkId}", and change REACT_APP_NETWORK_URL to e.g. "https://{yourNetwork}.infura.io/v3/{yourKey}".

If deploying with Github Pages, be aware that there's some tricky client-side routing behavior with create-react-app.

Contributions

Please open all pull requests against the v2 branch. CI checks will run against all PRs.