WeatherXM Decentralized Data Index is a dapp that allows users to fetch WeatherXM's data and Merkle trees from Basin's smart contracts. This application is designed to be fully decentralized, enabling users to access weather data and daily reward distribution Merkle trees directly from Filecoin. You can see it in action on https://index.weatherxm.network
- Fetch weather data from Basin's smart contracts.
- Retrieve Merkle trees from daily reward distributions for station owners.
- Specify custom time ranges to retrieve historical weather data.
- Decentralized architecture, ensuring data integrity and transparency.
Before running the application, ensure you have the following dependencies installed on your machine:
- Node.js: Download and Install Node.js
- Git: Download and Install Git
- Follow these steps to set up and run the WeatherXM Decentralized Data Index locally:
- Clone the repository to your local machine using Git:
git clone https://github.com/WeatherXM/wxm-data-index.git
- Navigate to the project directory:
cd wxm-data-index
- Install the project dependencies using npm:
npm install
- Create a
.env.local
file in the root of the project and fill in the env variables like in.env.example
- Start the dev server
npm run dev
Open your web browser and access the application at http://localhost:3000.
- Select the desired publication from the dropdown menu.
- Choose a time range for the data you want to fetch.
- The fetched data will be displayed on the screen.