ระบบขายของหน้าร้านขนาดเล็ก
Translation pending
CommerceJavaScript · CSSGitHub @s6904033612212-maxOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
ระบบขายของหน้าร้านเล็กๆ — Next.js (App Router) + Supabase, deploy บน Vercel • supabase/schema.sql — สร้างตาราง products, sales และ RLS policy (ขั้นตอน 5.3) • supabase/seed.sql — ข้อมูลสินค้าตั้งต้น 10 SKU (ขั้นตอน 5.4) 1. https://vercel.com/new → Import repository mini-pos (Framework Preset: Next.js) 2. Environment Variables (ครบ 2 แถว): 3. ไม่ต้องกด Add ในกล่อง Optional Integrations → Supabase 4. กด Deploy หมายเหตุ: ถ้าเผลอวาง URL ที่มี /rest/v1/ หรือช่องว่างติดมา lib/supabaseClient.js จะตัดออกให้อัตโนมัติRead the full README ↗
ระบบขายของหน้าร้านเล็กๆ — Next.js (App Router) + Supabase, deploy บน Vercel
| หน้า | หน้าที่ |
|---|---|
/ | รายการสินค้า: ดู / เพิ่ม / แก้ไข / ลบ |
/sell | ขายสินค้า: เลือกหลายรายการลงตะกร้า ยอดรวมตัวใหญ่ด้านบน กดยืนยันแล้วตัดสต๊อกอัตโนมัติ |
/history | ประวัติการขาย เรียงล่าสุดก่อน พร้อมยอดขายรวม |
supabase/schema.sql — สร้างตาราง products, sales และ RLS policy (ขั้นตอน 5.3)supabase/seed.sql — ข้อมูลสินค้าตั้งต้น 10 SKU (ขั้นตอน 5.4)https://vercel.com/new → Import repository mini-pos (Framework Preset: Next.js)
Environment Variables (ครบ 2 แถว):
| Key | Value |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | https://<project-ref>.supabase.co (ไม่มี /rest/v1/ ต่อท้าย) |
NEXT_PUBLIC_SUPABASE_ANON_KEY | anon public key (eyJ...) — ห้ามใช้ service_role |
ไม่ต้องกด Add ในกล่อง Optional Integrations → Supabase
กด Deploy
หมายเหตุ: ถ้าเผลอวาง URL ที่มี
/rest/v1/หรือช่องว่างติดมาlib/supabaseClient.jsจะตัดออกให้อัตโนมัติ
หลังกดขายสำเร็จ ระบบจะส่งข้อความเข้า Telegram Channel อัตโนมัติ:
Bot Token อยู่ฝั่ง Server เท่านั้น (app/api/notify/route.js) ไม่หลุดไปในเบราว์เซอร์
ถ้าส่ง Telegram ไม่สำเร็จ การขายยังสำเร็จตามปกติ
เพิ่ม Environment Variables บน Vercel (ไม่ต้องมี NEXT_PUBLIC_ นำหน้า):
| Key | Value |
|---|---|
TELEGRAM_BOT_TOKEN | Token จาก @BotFather |
TELEGRAM_CHAT_ID | @ชื่อchannel (Public) หรือ -100... (Private) |