Buatkan saya aplikasi fullstack bernama "Digital Store Pro" dengan fitur website jualan produk digital (seperti JB store) yang dapat dikelola melalui bot Telegram.
STACK:
FITUR WEBSITE:
FITUR ADMIN VIA TELEGRAM BOT:
BOT TELEGRAM:
FITUR TAMBAHAN:
DESAIN (WAJIB PREMIUM):
STRUKTUR FILE:
SECURITY:
OUTPUT:
BONUS:
Let me now create the database types, utilities, and all the core files:
Now let me create all the frontend components and pages:
Good, the theme provider already exists. Now let me create the main components:
Good, the UI components exist. Let me now mark all tasks done and provide the environment variable configuration guidance:
I have created Digital Store Pro - a complete full-stack digital products marketplace with Telegram bot administration. Here's the summary:
Website:
API Routes:
/api/products - CRUD operations for products/api/orders - Order creation with Telegram notifications/api/categories - Category listing/api/telegram/webhook - Telegram bot webhook handlerTelegram Bot Commands:
/start - Welcome message and menu/addproduk - Add product (step-by-step)/editproduk - Edit existing products/hapusproduk - Delete products with confirmation/listproduk - View all productsClick the Settings button (top right) > Vars and add:
| Variable | Description |
|---|---|
TELEGRAM_BOT_TOKEN | Get from @BotFather on Telegram |
ADMIN_ID | Your Telegram user ID (get from @userinfobot) |
After deploying to Vercel, run this to activate the bot:
curl "https://YOUR-DOMAIN.vercel.app/api/telegram/webhook?action=setWebhook&url=https://YOUR-DOMAIN.vercel.app/api/telegram/webhook"The application uses an in-memory database with sample products. For production, you can integrate MongoDB or Supabase for persistent storage.
You can send messages while the preview loads