Skip to content

Vecno-Foundation/vecnopool-frontend

Repository files navigation

Vecnopool-frontend

Vecnopool frontend is a simple frontend to display the pool's hashrate, difficulty, mined blocks and payments.

Prerequisites

  • Node.js: Version 16 or higher (tested with v22.20.0).
  • npm: Version 8 or higher.

Installation

  1. Clone the Repository:
git clone https://github.com/Vecno-Foundation/vecnopool-frontend.git
   cd vecnopool-frontend
  1. Install Dependencies: bash

    npm install
  2. Set Up Environment:

    • Ensure the Vecnoscan API (/api/blocks**, /api/balances, /api/payments, /api/shares, /api/hashrate) and WebSocket (ws://localhost:8080/ws) are accessible.**
    • Update vite.config.js if API endpoints differ.

Available Scripts* Start Development Server: bash

  npm run dev

Runs the app at http://localhost:3000.

  • Build for Production: bash

    npm run build

    Generates optimized files in dist/.

  • Preview Production Build: bash

    npm run preview

    Serves the production build locally.

  • Run Tests: bash

    npm run test

    Executes tests with Vitest.

  • Eject Vite Configuration: bash

    npm run eject

    Exposes Vite configuration for customization.

Dependencies* React: Frontend framework (^18.3.1).

  • Axios: HTTP client for API requests (^1.7.7).
  • Chart.js & react-chartjs-2: For hashrate charts (^4.5.0, ^5.3.0).
  • Lodash: Utility functions, e.g., debounce (^4.17.21).
  • Tailwind CSS: Styling framework (^3.4.14).
  • Vite: Build tool and development server (^5.4.8).
  • **See **package.json

About

Vecnopool frontend is a simple frontend to display the pool's hashrate, difficulty, mined blocks and payments.

Topics

Resources

Stars

Watchers

Forks