Apps y entornos
node.js generic
Despliega una app de Node.js por API
1 GB
RAM
100%
CPU
5 GB
Disco
Qué es node.js generic
Un entorno Node.js genérico para bots de Discord, apps web, APIs y workers. Sube tu repo y ejecuta cualquier comando npm start.
Los valores de arriba son un punto de partida recomendado — ajusta RAM, CPU y disco por llamada API y escala cuando quieras.
Despliega node.js generic con el SDK
deploy.ts
import { CloudClient } from "@enzonic/cloud-api";
const cloud = new CloudClient({ apiKey: process.env.CLOUD_API_KEY! });
// Resolve the node.js generic egg by name (ids vary per panel)
const eggs = await cloud.eggs();
const egg = eggs.find((e) => e.name.includes("node.js generic"))!;
const server = await cloud.servers.create({
name: "nodejs-1",
eggId: egg.id,
region: "USA",
ramMb: 1024,
cpuPercent: 100,
diskMb: 5120,
});
await cloud.servers.power(server.id, "start");O con REST (curl)
deploy.sh
# 1. Find the node.js generic egg id
curl -s https://cloud.api.enzonic.com/v1/eggs \
-H "Authorization: Bearer $CLOUD_API_KEY"
# 2. Create the server (replace EGG_ID with the id from step 1)
curl -X POST https://cloud.api.enzonic.com/v1/servers \
-H "Authorization: Bearer $CLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "nodejs-1",
"eggId": EGG_ID,
"region": "USA",
"ramMb": 1024,
"cpuPercent": 100,
"diskMb": 5120
}'Gestiónalo por completo
Una sola clave gestiona el encendido, la consola, los comandos y los archivos.
// Power, console & files — all from the one key
await cloud.servers.power(server.id, "restart");
await cloud.servers.command(server.id, "say Hello from the API");
const usage = await cloud.servers.resources(server.id);Relacionados
Despliega node.js generic en segundos
Crea una cuenta, obtén una clave API y despliega por código.
Empezar gratis