klvndrgn / analog-queryview

3 stars 5 forks source link

<!DOCTYPE html>

Analog Query View (Alternative)

Since the normal function for analog query is having issues, let’s try using an alternative method.

Getting Started

You can use this guide to set up and run the application either on your local PC with an IDE like Visual Studio Code or on GitHub Codespaces. On this guide I'm using local setup using VS Code.

  • Create a React Application:
    npx create-react-app analog
    cd analog
  • Install Required Packages:
    npm i @polkadot/extension-dapp @analog-labs/timegraph-js dotenv
  • Edit the src/App.js File:

    Replace the content of src/App.js with the code from this link.

    On line 5, replace your_session_key with your session key.

    How to find your SESSION KEY:

    • Go to Watch Analog Profile.
    • Click on the download session key icon beside your profile address.
    • Copy the value starting from 0; from the sessionkey.txt file.
  • Start the Application:
    npm start

    The app will be accessible at http://localhost:3000. Open this URL in your browser to run the query.