- Show failed transactions separatley - Remove mock data Reviewed-on: #2 Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Co-committed-by: Nabarun <nabarun@deepstacksoft.com> |
||
|---|---|---|
| .gitea/workflows | ||
| components | ||
| deploy | ||
| pages | ||
| public | ||
| scripts | ||
| styles | ||
| utils | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| next.config.js | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
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
-
Clone and install dependencies:
git clone https://git.vdb.to/cerc-io/mtm-vpn-dashboard.git cd mtm-vpn-dashboard npm install -
Start mtm-to-nym-service
Follow steps in https://git.vdb.to/cerc-io/mtm-to-nym-service
-
Configure environment variables:
cp .env.example .env.localUpdate 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 -
Start the development server:
npm run dev -- -p 4000 -
Access the application: Open http://localhost:4000 in your browser
Usage
- Navigate to
/dashboardfor 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