https://uniswap-data-visualization-ayqk.vercel.app/
This is a project to display DeFi data related to tokens, pools and transactions from the Uniswap Protocol, following the Uniswap Info website. Uniswap V3 Subgraph and Ethereum Blocks are used for GraphQL API calling.
Warning
: If facing slowness or errors when running the project locally, please click Refresh and/or check all of the mentioned sources first.
- React (with Typescript): building UI components + state management (with Context)
- Apollo Client: GraphQl queries and clients set-up
- tailwindcss: styling
apollo
: Define Apollo clientscomponents
: React componentsconstants
: Project constantscontext
: Handle app's Contextdata
: Define apps, data types and formatting-data functionsgenerate
: Generated types from GraphQL queriesgraphql
: Defined GraphQL querieshooks
: Custom React hookstest
: Test utility functionstypes
: Defined Typescript type filesutils
: Commonly-used utility functions
- Node
v16.10.0
- Yarn
v1.22.19
- Clone the project:
git clone https://github.com/vutuanlinh2k2/uniswap-data-visualization.git
- Move to the project's directory:
cd uniswap-data-visualization
- Install dependencies:
yarn
- Generate types from GraphQL queries
yarn generate
- Start running the project:
yarn start
yarn prertier
: Format codeyarn lint
: Linting check