การติดตั้งและเริ่มต้นเร็ว
Microbase ทำงานเป็น Single-binary Go server พร้อม Admin UI (Svelte 5) ฝังไว้ที่ /_/ และใช้ PostgreSQL (pgvector) เป็นฐานข้อมูลหลัก
วิธีที่ 1: ดาวน์โหลด Prebuilt Binary
Section titled “วิธีที่ 1: ดาวน์โหลด Prebuilt Binary”ดาวน์โหลดไฟล์สำหรับ OS/CPU ของคุณจาก GitHub Releases:
# ตัวอย่างสำหรับ Linux amd64curl -L -o microbase.zip https://github.com/techasit5415/microbase/releases/latest/download/microbase_0.12.18_linux_amd64.zipunzip microbase.zipchmod +x microbaseวิธีที่ 2: รันผ่าน Docker
Section titled “วิธีที่ 2: รันผ่าน Docker”docker pull ghcr.io/techasit5415/microbase:latestวิธีที่ 3: Build จาก Source Code
Section titled “วิธีที่ 3: Build จาก Source Code”ต้องมี Go 1.24+ และ Node.js 24+:
git clone https://github.com/techasit5415/microbase.gitcd microbasecd ui && npm ci && npm run build && cd ..CGO_ENABLED=0 go build -trimpath -o microbase ./cmd/serverการรันครั้งแรกและสร้าง Superuser
Section titled “การรันครั้งแรกและสร้าง Superuser”./microbase- หากรันครั้งแรกโดยยังไม่มี
microbase.confระบบจะสร้างไฟล์ (สิทธิ์0600) พร้อมสุ่มJWT_SECRETและENCRYPTION_KEYให้อัตโนมัติ - หากยังไม่มีบัญชีใน
_superusersระบบจะพิมพ์ Setup OTP 8 หลัก (อายุ 5 นาที) ในกรอบเด่นบน terminal - เปิด
http://localhost:3000/_/กรอกอีเมล, รหัสผ่าน (อย่างน้อย 8 ตัว), และ Setup OTP - หรือสร้าง Superuser ผ่าน CLI:
./microbase superuser upsert admin@example.com "StrongPassword123!"