ESP32-S3 Bench Guide
ESP32‑S3 N16R8 벤치 가이드: 실시간 핀아웃, 강의, 시뮬레이터 및 벤치 로그
AI 기반 베트남어 사용자를 위한 영어 학습 앱, 발음·작문 채점·모의고사·CEFR 단계별 로드맵·학부모 보고서 제공, 무료 체험 가능
Ứng dụng học tiếng Anh với AI cho người Việt: luyện nói có chấm phát âm, chấm bài viết theo band IELTS/TOEIC, thi thử, lộ trình theo trình độ CEFR và báo cáo cho phụ huynh. Học thử miễn phí, không cần
교육Python · TypeScriptGitHub @atmarketing68온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기AI English Learning Agent - FastAPI backend and Nextjs web app
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Personalized English learning platform for Vietnamese learners, powered by Gemini AI.
Stack: FastAPI · Next.js 16 · PostgreSQL · SQLite (dev) · Zustand · Tailwind-like CSS
AI_English_Learning_Agent/
├── agen-backend/ # FastAPI backend
└── agen-web/ # Next.js 16 frontend
cd agen-backend
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Mac/Linux
pip install -r requirements.txt
cp .env.example .env # Fill in your API keys
uvicorn main:app --reload --port 8000
API docs: http://localhost:8000/docs
cd agen-web
npm install
# Create .env.local:
echo "NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1" > .env.local
npm run dev
[User] → [Vercel CDN] → [Next.js Frontend]
↓ API calls
[Render.com Web Service]
[FastAPI Backend]
↓
[Render.com PostgreSQL]
Push code to GitHub (ensure agen-backend/ is in your repo)
Create a Render account at https://render.com
New → Blueprint → connect your GitHub repo
agen-backend/render.yamlSet secret environment variables in Render Dashboard:
GEMINI_API_KEY → set this secret directly in Render Environment VariablesOPENAI_API_KEY → your OpenAI key (optional)SECRET_KEY → auto-generated by Render (or set your own)First deploy will:
alembic upgrade head (create all tables)Note your backend URL: https://agen-api.onrender.com
⚠️ Free tier sleeps after 15 min inactivity — first request takes ~30s to wake up. Upgrade to Starter ($7/mo) for always-on.
Create a Vercel account at https://vercel.com
New Project → Import your GitHub repo
agen-webSet environment variable in Vercel Dashboard:
NEXT_PUBLIC_API_URL = https://agen-api.onrender.com/api/v1Click Deploy — Vercel builds and deploys automatically.
Update CORS in Render: set ALLOWED_ORIGINS to your Vercel URL
https://agen-web.vercel.app# Health check
curl https://agen-api.onrender.com/health
# Register test user
curl -X POST https://agen-api.onrender.com/api/v1/auth/register \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"Test1234","full_name":"Test","display_name":"Test"}'
Phần này hướng dẫn dựng một bản pilot chạy local trên giao diện máy tính.
cd agen-backend
python -m venv venv
venv\Scripts\activate # Windows
pip install -r requirements.txt
copy .env.example .env # Windows (hoặc: cp .env.example .env)
Người vận hành pilot mở agen-backend/.env và điền tối thiểu:
APP_ENV=development
SECRET_KEY=<chạy: python -c "import secrets; print(secrets.token_hex(32))">
DATABASE_URL=sqlite:///./agen_dev.db
ALLOWED_ORIGINS=http://localhost:3000
GEMINI_API_KEY=<khóa Gemini do người vận hành quản lý>
ADMIN_EMAILS=<email quản trị của bạn> # để truy cập trang /admin
FREE_DAILY_LESSON_LIMIT=3 # bài/ngày cho gói free (0 = không giới hạn)
Khởi động server (KHÔNG dùng --reload khi pilot để tránh vòng lặp reload):
python -m uvicorn main:app --host 0.0.0.0 --port 8000
cd agen-web
npm install
echo NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1 > .env.local
npm run dev
Mở app tại http://localhost:3000
AGEN sinh nội dung bài học bằng AI. Nếu sinh sẵn + duyệt trước, học viên sẽ nhận bài tức thì (không tốn quota, nội dung ổn định). Chạy CLI:
cd agen-backend
# Sinh + tự duyệt toàn bộ nội dung cấp A1 (mỗi bài = 1 lượt gọi AI):
python scripts/pregenerate_content.py --level A1 --auto-approve
# Có thể làm tiếp A2, B1 (tùy quota AI của bạn):
python scripts/pregenerate_content.py --level A2 --auto-approve
python scripts/pregenerate_content.py --level B1 --auto-approve
⚠️ Quota AI: Gemini free tier giới hạn ~20 lượt/ngày. Sinh cả một cấp độ (24 bài) sẽ dùng hết quota trong ngày. Dùng khóa trả phí để sinh toàn bộ một lần, hoặc chia nhiều ngày. Bài chưa sinh sẵn vẫn hoạt động — hệ thống tự sinh live khi học viên mở.
Nếu muốn review thủ công trước khi phát hành: bỏ --auto-approve (nội dung ở trạng
thái draft), rồi vào /admin → tab Kho nội dung để duyệt từng bài.
Trang /admin (giám sát chất lượng AI + quản lý kho nội dung) chỉ mở cho email nằm
trong ADMIN_EMAILS. Đăng ký một tài khoản bằng đúng email đó rồi truy cập /admin.
cd agen-backend
pytest -q
agen-backend/.env)| Variable | Required | Description |
|---|---|---|
APP_ENV | Yes | development or production |
SECRET_KEY | Yes | JWT signing key — use python -c "import secrets; print(secrets.token_hex(32))" |
DATABASE_URL | Yes | PostgreSQL or SQLite URL |
ALLOWED_ORIGINS | Yes | Comma-separated frontend URLs |
GEMINI_API_KEY | Yes* | Google Gemini API key |
OPENAI_API_KEY | No | OpenAI API key (alternative to Gemini) |
ADMIN_EMAILS | No | Comma-separated emails cho phép truy cập /admin (rỗng = không ai) |
FREE_DAILY_LESSON_LIMIT | No | Số bài/ngày cho gói free (mặc định 3; 0 = không giới hạn) |
ACCESS_TOKEN_EXPIRE_MINUTES | No | Default: 1440 (24h) |
*At least one AI key is required.
agen-web/.env.local)| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_API_URL | Yes | Backend API base URL |
# Run on new environment (production)
cd agen-backend
alembic upgrade head
# Create new migration after model changes
alembic revision --autogenerate -m "describe_your_change"
# Check current migration status
alembic current
cd agen-backend
# Build image
docker build -t agen-backend .
# Run with env vars
docker run -p 8000:8000 \
-e DATABASE_URL="sqlite:///./agen_dev.db" \
-e SECRET_KEY="your-dev-key" \
-e GEMINI_API_KEY="your-key" \
-e ALLOWED_ORIGINS="http://localhost:3000" \
agen-backend
| Layer | Technology |
|---|---|
| Frontend | Next.js 16, React 19, TypeScript, Zustand |
| Backend | FastAPI, SQLAlchemy 2, Pydantic v2 |
| Database | PostgreSQL (prod), SQLite (dev) |
| AI | Google Gemini 3.6 Flash / OpenAI GPT-4o-mini |
| Auth | JWT (python-jose), bcrypt |
| Migrations | Alembic |
| Deployment | Render.com (backend), Vercel (frontend) |
| Rate Limiting | slowapi |
Available at /docs (Swagger UI) — only in APP_ENV=development.
Disabled in production for security.