📥 OPEN SOURCE · MIT LICENSE

ดาวโหลด aiclasss.com

9 เกมส์ · 128 ด่าน · 100% in-house
Next.js 14 + TypeScript + PostgreSQL · โหลดฟรี ใช้ฟรี แก้ไขได้

หรือ clone:git clone https://github.com/lnwsj/aiclasss.com.git

📦 ในไฟล์ดาวโหลด

🎮

9 เกมส์ · 128 ด่าน

Tower Defense, Block Quest, Coding Fox, Robot Coding, Algorithm Quest, Voxel City, AI Trainer, Sort Master, Number Wizard

100% in-house · no iframe
📚

คู่มือครบ 3 เล่ม

คู่มือนักเรียน + ครู v3 (274 ภาพ) + ไฟล์ static

TH primary · ~370KB
🗄️

Database Schema

PostgreSQL migrations ครบ · profiles, attempts, plays, progress

db/migrations/
🐳

Docker + Compose

Dockerfile + docker-compose.yml · deploy ได้ทันที

Multi-stage build
🧪

Tests 50+ ไฟล์

Runtime, lesson, mechanic, AI, multiplayer ครอบคลุม

npm test
📖

README + INSTALL + ROADMAP

เอกสารครบ · ติดตั้ง production ได้ใน 1 ชม.

ภาษาไทย

🛠️ Tech Stack

Next.js 14
App Router · SSR · Static
TypeScript
Strict mode · 100+ files
PostgreSQL 16
Production DB
CSS Modules
No Tailwind · design tokens
NGINX + systemd
Production deployment
PWA
Installable · offline-ready

🎮 เกมส์ทั้ง 9 เกมส์ (ในไฟล์ที่ดาวโหลด)

🏰
Tower Defense
30 ด่าน
Strategy
🧩
Block Quest
12 ด่าน
Coding Blocks
🦊
Coding Fox
12 ด่าน
Coding Puzzle
🤖
Robot Coding
8 ด่าน
Coding Sim
🗺️
Algorithm Quest
20 ด่าน
Algorithm RPG
🏙️
Voxel City
10 ด่าน
Sandbox
🤖
AI Trainer
12 ด่าน
AI/ML
🧮
Sort Master
12 ด่าน
Sorting
🔍
Number Wizard
12 ด่าน
Binary Search

⚡ Quick Install (5 นาที)

1git clone https://github.com/lnwsj/aiclasss.com.git && cd aiclasss.com
2cp .env.example .env # แก้ DATABASE_URL
3npm install
4psql $DATABASE_URL < db/migrations/001_init.sql
5npm run dev # → http://localhost:3000

📋 Prerequisites (Production)

🟢
Node.js
20+ LTS
🐘
PostgreSQL
14+
🌐
NGINX
1.18+
🔒
Certbot
latest
📦
Git
2.x

🚀 Deploy Production (Ubuntu 22.04)

1

Install dependencies

sudo apt update
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs postgresql nginx certbot python3-certbot-nginx
2

Setup PostgreSQL

sudo -u postgres psql -c "CREATE USER aiclasss WITH PASSWORD 'YOUR_PASS';"
sudo -u postgres psql -c "CREATE DATABASE aiclasss OWNER aiclasss;"
3

Build & Run

npm install
cp .env.example .env # set DATABASE_URL
psql $DATABASE_URL < db/migrations/001_init.sql
npm run build
4

systemd service

sudo tee /etc/systemd/system/aiclasss-v2.service > /dev/null <<EOF
[Unit]
Description=aiclasss.com v2
[Service]
WorkingDirectory=/opt/aiclasss.com
EnvironmentFile=/opt/aiclasss.com/.env
ExecStart=/usr/bin/node node_modules/next/dist/bin/next start -p 3000
Restart=always
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now aiclasss-v2
5

NGINX + SSL

sudo certbot --nginx -d aiclasss.com -d www.aiclasss.com
sudo systemctl reload nginx

เปิด https://aiclasss.com

ถ้าทุกอย่างเรียบร้อย จะเห็น 9 เกมส์พร้อมเล่น!

🗺️ แผนงานในอนาคต (Roadmap)

ปัจจุบันเสร็จ 14 phases · รวม 9 เกมส์ · 128 ด่าน · 100% in-house
แผนถัดไป: เก็บ learning stats · เพิ่ม teacher view · ขยาย curriculum

15.A🔜

Stats Foundation

types.ts + storage.ts + manager.ts + useStats hook

15.B🔜

Integrate 9 เกมส์

แต่ละเกมส์ track level start/end + best score

15.C🔜

DB + API

game_stats, game_achievements, game_play_sessions

15.D🔜

Stats Dashboard

/stats page + achievement wall + streak calendar

16.A🔜

Data Detective

data viz 12 ด่าน (CSTA 1B-DA-06/07)

16.B🔜

Internet Hero

digital citizenship 12 ด่าน (CIA Triad)

17.A🔜

Teacher View

class mgmt + per-student progress

17.B🔜

Assignments

auto-grading + due dates + reports

📄 ดู roadmap ฉบับเต็ม: ROADMAP.md ในไฟล์ที่ดาวโหลด

🤝 Contributing & License

📜

MIT License

ใช้งาน แก้ไข แจกจ่าย เชิงพาณิชย์ได้ · ขอแค่เก็บเครดิตไว้

Copyright © 2026 lnwsj · Made with ❤️ in Thailand 🇹🇭

อยากช่วยพัฒนา?

  1. Fork github.com/lnwsj/aiclasss.com
  2. สร้าง feature branch: git checkout -b feat/amazing-game
  3. ทำตาม file cap (≤ 300 LoC/ไฟล์) · ใช้ CSS Modules · ไม่ใช้ Tailwind
  4. รัน npm run ci:guardrails ก่อน commit
  5. ส่ง Pull Request 🎉