NEWLoisaX CLI 1.4 and 1-command cloud deploys now liveRead post
Guides9 guides

From code to
live, step by step.

Hands-on tutorials to build, configure, and host your project: from local development to continuous 24/7 production.

Discord bot · Comparison

Best Discord bot hosting in 2026

Real memory footprint, persistent WebSocket stability, secret isolation, and how to test your bot with 15-day free credits.

6 steps · 7 min read · Nov 24, 2026Read the guide
Infrastructure · Comparison

VPS or managed hosting for a bot?

Real prices, OS overhead, TLS renewals, and Linux maintenance: when a raw VPS makes sense and when managed compute saves hours.

  • Comparar a rotina operacional de uma VPS Linux com computação gerenciada.
  • Calcular a memória RAM real disponível descontando o sistema operacional.
  • Evitar quedas em produção substituindo git pull manual por revisões imutáveis.
5 steps · 6 min read · Nov 22, 2026
JSsrc/index.js
1import { Client, Events, GatewayIntentBits, REST, Routes } from "discord.js";
2import { commands, handleInteraction } from "./commands.js";
3
4const token = process.env.DISCORD_TOKEN;
5const clientId = process.env.DISCORD_CLIENT_ID;
6if (!token || !clientId) process.exit(1);
7
8const client = new Client({ intents: [GatewayIntentBits.Guilds] });
Discord bot · Node.js

Create your first Discord bot

Our Node.js Discord bot creation guide was designed to walk you through every stage of building, configuring, and hosting your bot 24/7.

  • Create and configure an application in the Discord Developer Portal.
  • Develop your own multi-command bot using Node.js.
  • Configure and protect your authentication token.
6 steps · 15 min read · Nov 27, 2026
JSsrc/app.js
1import express from "express";
2// Lista em memoria apenas para o exemplo inicial
3const tarefas = [
4 { id: 1, titulo: "Colocar a API no ar com HTTPS" },
5 { id: 2, titulo: "Ligar um dominio proprio" },
6];
7
8export const app = express();
API · Node.js

How to host a Node.js API with Express

From an API on localhost to a public HTTPS address: a ready project, the right port, safe secrets, and the most common errors with the fix.

  • Estruturar uma API REST em Node.js 22 com Express e rotas CRUD.
  • Configurar bind de rede em 0.0.0.0 e leitura dinâmica da variável PORT.
  • Implementar rota de healthcheck (/health) e política de CORS segura.
7 steps · 12 min read · Nov 20, 2026
JSsrc/bot.js
1import makeWASocket, { useMultiFileAuthState } from "@whiskeysockets/baileys";
2
3const AUTH_DIR = process.env.WA_SESSION_DIR || "./data/wa-session";
4const { state, saveCreds } = await useMultiFileAuthState(AUTH_DIR);
5
6const sock = makeWASocket({ auth: state });
7sock.ev.on("creds.update", saveCreds);
WhatsApp bot · Node.js

How to host a WhatsApp bot in Node.js

Paired once by 8-digit code or QR, reconnecting automatically on network drops while preserving session files.

  • Entender as diferenças entre a API Oficial da Meta e conexão WebSocket via Baileys.
  • Desenvolver um bot de WhatsApp leve em Node.js sem depender de Chromium.
  • Vincular o número utilizando código de pareamento de 8 dígitos nos logs.
7 steps · 10 min read · Nov 18, 2026
PYmain.py
1import os, discord
2from discord import app_commands
3
4TOKEN = os.getenv("DISCORD_TOKEN")
5client = discord.Client(intents=discord.Intents.default())
6tree = app_commands.CommandTree(client)
Discord bot · Python

How to host a Python Discord bot

Clean requirements.txt, synced slash commands, unbuffered real-time logs, and safe environment secrets.

  • Criar e configurar sua aplicação no Discord Developer Portal.
  • Desenvolver um bot em Python com discord.py e CommandTree sincronizada.
  • Declarar dependências enxutas e fixadas no arquivo requirements.txt.
6 steps · 11 min read · Nov 15, 2026
TSsrc/app/page.tsx
1export const dynamic = "force-dynamic";
2
3export default async function HomePage() {
4 const region = process.env.APP_REGION || "sa-east-1";
5 return <main>Renderizado em {region}</main>;
6}
Web & SSR · Next.js

How to host a Full-Stack Next.js app

Production next build & start scripts, public vs. server secrets, persistent DB pools, and custom HTTPS domains.

  • Configurar os scripts de build e start do Next.js 15 para 0.0.0.0 e porta dinâmica.
  • Separar variáveis públicas (NEXT_PUBLIC_*) de segredos exclusivos do servidor.
  • Dimensionar memória RAM adequada para compilação TypeScript e execução SSR.
6 steps · 12 min read · Nov 14, 2026
PYmain.py
1from fastapi import FastAPI
2app = FastAPI(title="LoisaX API")
3
4@app.get("/health")
5def health():
6 return {"status": "ok"}
API · Python

How to host a Python API with FastAPI

Pydantic validation, interactive /docs, production Uvicorn flags, and encrypted environment variables.

  • Estruturar uma API assíncrona em Python utilizando FastAPI e Pydantic.
  • Declarar fastapi, uvicorn[standard] e pydantic no requirements.txt.
  • Configurar o comando Uvicorn escutando em 0.0.0.0 na porta dinâmica.
5 steps · 10 min read · Nov 10, 2026
GOcmd/api/main.go
1pool, err := pgxpool.New(ctx, os.Getenv("DATABASE_URL"))
2mux := http.NewServeMux()
3mux.HandleFunc("GET /health", healthHandler)
4http.ListenAndServe("0.0.0.0:"+port, mux)
API & DB · Go

How to host a Go API with PostgreSQL

Sub-25 MB native binary, pgxpool connection pooling, graceful SIGTERM shutdown, and /health checks.

  • Estruturar um servidor HTTP em Go 1.23 com roteamento nativo.
  • Gerenciar pool de conexões concorrentes ao PostgreSQL com pgx/v5.
  • Configurar a variável DATABASE_URL com parâmetros seguros de TLS.
5 steps · 12 min read · Nov 6, 2026
Community & Education

Our commitment to developers

At LoisaX, we believe our role goes beyond providing hosting and cloud computing services. We also want to contribute to the learning and growth of our developer community.

We are continuously expanding our catalog of guides with new content on programming languages, API integrations, automation, and application development.