feat: Initialize project with core dependencies, Vultr API client, customer database service, and migration documentation.

This commit is contained in:
2026-02-06 18:11:28 +08:00
parent 73366f4395
commit 41c2fa5fcc
2618 changed files with 852274 additions and 1449 deletions

View File

@@ -0,0 +1,20 @@
require('dotenv').config();
const mikrotik = require('./services/mikrotikService');
async function test() {
console.log("Testing Mikrotik Interface Retrieval...");
try {
const interfaces = await mikrotik.getInterfaces();
console.log(`Found ${interfaces.length} interfaces.`);
if (interfaces.length > 0) {
console.log("Example Interface:", interfaces[0]);
// Check for specific commonly named interfaces if possible, or just dump first one
const ether1 = interfaces.find(i => i.name === 'ether1');
if (ether1) console.log("Ether1 Stats:", ether1);
}
} catch (error) {
console.error("Test Failed:", error);
}
}
test();