๐Ÿ‡ฐ๐Ÿ‡ญ Powered by AI ยท Built for Students

AI Club Cambodia

Web Hosting Platform

Become a lifetime member of our community. Learn to build, deploy, and share real web applications with AI assistance โ€” from your first line of code to your first live website. Lifetime learning. Lifetime sharing. Free hosting for all members.

๐Ÿš€ Student Portal ๐Ÿ“– Deploy Guide
โšก

Instant Deploy

Push your code, get a live HTTPS URL in seconds. No config needed.

๐Ÿค–

AI-Powered

Your AI agent deploys for you via MCP. Just describe what you want.

๐Ÿ—„๏ธ

Databases

Free PostgreSQL databases for every project, with one-click setup.

๐Ÿ”’

HTTPS + Domains

Automatic SSL certificates and custom domain support.

๐Ÿ“‹ Deployment Rules for AI Agents

โœ… Rule 1: Use process.env.PORT โ€” never hardcode a port (3000, 8080, etc). The platform assigns the port.
โœ… Rule 2: Have package.json with a start script. The platform runs npm start.
โœ… Rule 3: Bind to process.env.HOST (127.0.0.1). Caddy handles public HTTPS.
// โœ… Correct app.listen(process.env.PORT, process.env.HOST); // โŒ Wrong โ€” hardcoded port, will crash app.listen(3000);
โœ… Rule 4: Store user uploads (images, PDFs) in process.env.STORAGE_PATH โ€” a persistent dir the platform gives every app. The code directory is WIPED on every deploy; STORAGE_PATH survives redeploys.
// โœ… Correct โ€” uploads persist across deploys const STORAGE = process.env.STORAGE_PATH; app.use('/uploads', express.static(STORAGE)); const upload = multer({ destination: STORAGE }); // โŒ Wrong โ€” wiped on the next deploy app.use('/uploads', express.static('./uploads'));
Auto-injected env: PORT, HOST, NODE_ENV, DATABASE_URL, APP_BASE_URL, STORAGE_PATH โ€” do not set these.
Package managers: npm, pnpm, yarn โ€” auto-detected from lockfile.
Frameworks: Express (no build), Next.js/Nuxt (set build_command: npm run build).
Deploy: tell your agent "Deploy to AIC-Web as [name]" or upload a zip via the portal.
Full guide: /deploy-guide

๐Ÿ’ฌ Join Our Community

Want to become a lifetime member? Have questions about building your first app?
Join our official Telegram group for guidance, sharing, and support.

โœˆ๏ธ Join Telegram Group