Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.27 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.27 KB

Examples: dashboard

A React dashboard for visualizing the data indexed in the DEX GraphQL database.

It uses shadcn/ui for styling and TradingView for the line and candles charts.

The purpose of this example is to demonstrate which kind of data is available for querying with the indexer stack.

Installation

  1. Install dependencies:

    pnpm i
  2. Configure the environment variables in the root .env file (or don't, and use the defaults):

Variable Description Default
NODE_ENV Environment (local, production) local
VITE_HASURA_URL URL of the Hasura endpoint http://localhost:8090

Usage

To run the dashboard:

pnpm dev

The dashboard will be available at http://localhost:5173.

Contributing

If you wish to contribute to the package, or add an example, please open an issue first to make sure that this is within the scope of the repository.

License

This project is licensed under the MIT License - see LICENSE for details.