Skip to content

deep-stack/mtm-vpn-dashboard

Repository files navigation

MTM VPN Dashboard

A Next.js dashboard application for monitoring the MTM VPN app.

Build & Deploy

See deployment instructions for detailed deployment steps using the Laconic registry system.

Prerequisites

  • Node.js 20+
  • npm
  • Access to MTM-to-NYM service API

Setup

  1. Clone and install dependencies:

    git clone https://git.vdb.to/cerc-io/mtm-vpn-dashboard.git
    cd mtm-vpn-dashboard
    npm install
  2. Start mtm-to-nym-service

    Follow steps in https://git.vdb.to/cerc-io/mtm-to-nym-service

  3. Configure environment variables:

    cp .env.example .env.local

    Update the following variables in .env.local:

    # Public endpoint of mtm-to-nym-service
    NEXT_PUBLIC_MTM_SERVICE_URL=http://localhost:3000
    
    # NYM chain RPC endpoint  
    NEXT_PUBLIC_NYX_RPC_URL=https://rpc.nymtech.net
    
    # ETH chain RPC endpoint (for balance checking)
    ETH_RPC_URL=https://eth.rpc.laconic.com/your-api-key
  4. Start the development server:

    npm run dev -- -p 4000
  5. Access the application: Open http://localhost:4000 in your browser

Usage

  • Navigate to /dashboard for the main overview
  • View transactions at /dashboard/transactions
  • Monitor failed transactions at /dashboard/failed
  • Check app downloads at /dashboard/downloads

API Integration

The dashboard connects to:

  • MTM Service API: Transaction and conversion data
  • Gitea API: App release and download statistics (via proxy to avoid CORS)
  • Blockchain RPCs: ETH and NYM network data for balance checking

Project Structure

├── components/          # Reusable UI components
├── pages/              # Next.js pages and API routes
│   ├── api/            # API proxy endpoints
│   └── dashboard/      # Dashboard pages
├── utils/              # Utility functions and API clients
├── public/             # Static assets and PWA files
├── styles/             # Global CSS and Tailwind config
└── deploy/             # Deployment configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published