This website serves as a demonstration of the capabilities offered by the subgraph-cosmos-proposals repository being developed by Pinax.
The subgraph enables efficient querying and indexing of Cosmos blockchain proposal data, making it easier for developers and users to access and analyze governance information across the Cosmos ecosystem.
Through this demo, you can explore how the subgraph can be integrated into web applications to create user-friendly interfaces for viewing and interacting with Cosmos governance data.
- Node.js
- npm or yarn package manager
- Git
- Clone the repository:
git clone https://github.com/your-username/cosmos-proposals-demo.git
cd cosmos-proposals-demo
- Install dependencies:
npm install
# or
yarn install
- Configure environment variables:
Create a .env
file in the root directory with the following content:
THE_GRAPH_API_KEY=your_api_key_here
To obtain The Graph API key:
- Visit The Graph Studio
- Create an account or sign in
- Navigate to your dashboard
- Generate a new API key
Start the local development server:
npm run dev
# or
yarn dev
The application will be available at http://localhost:3000
(or another port if 3000 is already in use).
To create a production build:
npm run build
# or
yarn build