Go to file
Nabarun c63fc5156b Integrate APIs for showing Bridge transactions and total APK download (#2)
- Show failed transactions separatley
- Remove mock data

Reviewed-on: #2
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2025-09-03 02:29:41 +00:00
.gitea/workflows Initial commit 2025-08-25 16:26:35 +05:30
components Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
deploy Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
pages Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
public Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
scripts Initial commit 2025-08-25 16:26:35 +05:30
styles Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
utils Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
.env.example Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
.gitignore Initial commit 2025-08-25 16:26:35 +05:30
CLAUDE.md Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
next.config.js Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
package-lock.json Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
package.json Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
postcss.config.js Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
README.md Integrate APIs for showing Bridge transactions and total APK download (#2) 2025-09-03 02:29:41 +00:00
tailwind.config.js Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00
tsconfig.json Add deployment scripts and integrate APIs for dashboard (#1) 2025-09-02 11:53:55 +00:00

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