Getting Started

¡Bienvenido a DownToZero Cloud! Esta guía te llevará paso a paso para comenzar con nuestros servicios en la nube. Ya seas principiante o un usuario experimentado, esta guía cubre los pasos esenciales para empezar a aprovechar el poder de DownToZero Cloud.

Step 1: Create an Account

Para comenzar a usar DownToZero Cloud, primero necesitas crear una cuenta:

  1. Ve a DownToZero Cloud Signup.

    Sign up form
  2. Ingresa tu correo electrónico y contraseña

  3. Haz clic en el botón Sign up

  4. Una vez registrado, puedes iniciar sesión a través de DownToZero Cloud Login.

Para cURL, por favor regístrate a través de la Web UI, luego genera una clave API para el acceso a la API.

  1. Ve a New API Key.

    shows the dialog for creating an API key

    Haz clic en el botón Create API key

  2. Exporta la clave API generada

    export DTZ_API_KEY=apikey-sample1234
    

Step 2: Enable the Container Services

  1. Habilita los Container Services

    highlight the enable container service button
  2. Abre los Container Services

    shows the Container Services overview
  1. Habilita Container Services

    curl -X 'POST' -H "X-API-KEY: $DTZ_API_KEY" 'https://containers.dtz.rocks/api/2021-02-21/enable'
    

Step 3: Deploy NGINX as a service

  1. Selecciona la sección Services

    highlight the services section in the top navigation
  2. Haz clic en Create Service

    highlight the create service button in the UI
  3. Ingresa los detalles del servicio para NGINX

    highlight the create service button in the UI

    3.1. El prefijo debe estar configurado como /. 3.2. La imagen debe ser nginx. 3.3. Haz clic en Create Service.

  4. En la vista general del servicio, aparece el nuevo servicio con un enlace de servicio

    highlighted the service link in the UI
  1. Crea el servicio

    curl -X 'POST' \
    'https://containers.dtz.rocks/api/2021-02-21/service' \
    -H 'Content-Type: application/json' \
    -H "X-API-KEY: $DTZ_API_KEY" \
    -d '{"prefix": "/","containerImage": "nginx"}'
    
    Esto devuelve el siguiente JSON.
    {
        "contextId": "context-fxev27jf",
        "enabled": true,
        "serviceId": "service-ibok4vnd",
        "created": "2025-08-30T09:29:09.739001675Z",
        "updated": "2025-08-30T09:29:09.739002547Z",
        "prefix": "/",
        "containerImage": "nginx"
    }
    

Step 4: Verify the deployment

  1. En la vista general del servicio, haz clic en el enlace del servicio

    highlighted the service link in the UI
  2. Verifica la implementación de NGINX

    show a welcome page generated by nginx
  1. Obtén el dominio generado para tu contexto.

    curl -H "X-API-KEY: $DTZ_API_KEY" 'https://containers.dtz.rocks/api/2021-02-21/domain'
    
    Esto devuelve el siguiente JSON.
    [{
        "contextId": "context-fxev27jf",
        "name": "fxev27jf.containers.dtz.dev",
        "verified": true,
        "created": "2025-08-30T08:45:26.656377567Z",
        "updated": "2025-08-30T08:45:26.656378477Z"
    }]
    
  2. Usa el valor name como dominio para verificar tu implementación.

    curl "https://DOMAIN_NAME"
    

Con esta guía, ¡estás listo para comenzar a usar DownToZero Cloud! Si encuentras algún problema o tienes preguntas, por favor contacta a nuestro equipo de soporte en contact@downtozero.cloud.