How mayerdev/nehost-backend works
nehost-backend is a hosting-panel backend. Its principal workflow is a client request to service management, which validates the request, provisions or operates a virtual server through Proxmox/SSH, and updates account and infrastructure records. The tree also shows separate account/authentication, infrastructure administration, support, and billing areas. The README identifies the product only broadly, and several controller excerpts are incomplete, so relationships not visible in the excerpts or documented by the README are omitted.
Main entry points: Services.js Virtual services · pay.js Recurring billing · Auth.js Authentication · Verify.js Input validation
Components 25
Panel API
- Authentication
controllers/Auth.js - Account
controllers/Account.js - Virtual services
controllers/Services.js - Locations
controllers/Locations.js - Node administration
controllers/Nodes.js - Operations API
controllers/Operations.js - Port administration
controllers/Ports.js - Subnet administration
controllers/Subnets.js - Tariffs
controllers/Vtariffs.js - User administration
controllers/Users.js - Promotions
controllers/Promo.js
Infrastructure
- Proxmox
- Host SSH
Persistent records
- MongoDB
- User records
models/mongo/User.js - Virtual server records
models/mongo/Vserver.js - Node records
models/mongo/Node.js - Other records
models/mongo
Operations and support
- Abuse handling
controllers/Abuse.js - Customer support
controllers/Support.js - Support administration
controllers/Asupport.js - Recurring billing
pay.js
Shared logic
- Input validation
utils/Verify.js - Credential generation
utils/Generators.js
Other components
- Panel client
Connections 16
- Panel client → Authentication: sends requests
controllers/Auth.js - Panel client → Virtual services: requests service actions
README.md - Authentication → MongoDB: reads and writes
controllers/Auth.js - Authentication → Input validation: validates fields
controllers/Auth.js - Account → Input validation: checks password
controllers/Account.js - Virtual services → Input validation: checks passwords
controllers/Services.js - Virtual services → Credential generation: creates passwords
controllers/Services.js - Virtual services → MongoDB: reads and updates
controllers/Services.js - Virtual services → Proxmox: manages containers
controllers/Services.js - Virtual services → Host SSH: runs host commands
controllers/Services.js - Port administration → Host SSH: removes port rules
controllers/Ports.js - Port administration → MongoDB: reads and updates
controllers/Ports.js - Support administration → MongoDB: manages tickets
controllers/Asupport.js - Recurring billing → MongoDB: charges accounts
pay.js - Recurring billing → Proxmox: removes containers
pay.js - Recurring billing → Host SSH: connects to host
pay.js