2026-04-01 09:37:09 +07:00
|
|
|
|
# Elemes - Panduan Guru
|
|
|
|
|
|
|
|
|
|
|
|
**Elemes** adalah Learning Management System (LMS) untuk mengajar pemrograman atau elektronika.
|
|
|
|
|
|
Guru cukup menyiapkan file konfigurasi dan konten materi dalam format Markdown,
|
|
|
|
|
|
lalu menjalankan container untuk deploy.
|
|
|
|
|
|
|
2026-08-08 11:57:08 +07:00
|
|
|
|
Fitur utama:
|
|
|
|
|
|
- **Playground Interaktif** — tab Velxio (Arduino simulator), Flowchart, Circuit, dan Code dengan run sesi PTY, stdinQueue, dan FileTree collapsible
|
|
|
|
|
|
- **Embed Konten** — sisipkan iframe Canva, YouTube, Google Docs, Figma langsung dari markdown
|
|
|
|
|
|
- **Kuis Interaktif** — Flashcard & Pilihan Ganda dengan randomisasi, skor, dan pembahasan
|
|
|
|
|
|
- **Slide** — carousel presentasi interaktif dari markdown dengan fullscreen mode
|
|
|
|
|
|
- **Flowchart** — editor flowchart interaktif dengan evaluasi frontend
|
|
|
|
|
|
- **Velxio BLE/USB Deployer** — flashing firmware Arduino via BLE (Chrome Android) atau USB (Web Serial API), dengan serial monitor inline
|
|
|
|
|
|
|
2026-04-01 09:37:09 +07:00
|
|
|
|
## Struktur Folder
|
|
|
|
|
|
|
|
|
|
|
|
Setelah setup, struktur folder utama (parent folder) akan terlihat seperti ini:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
project/
|
|
|
|
|
|
├── .env # Konfigurasi environment
|
|
|
|
|
|
├── content/ # Folder materi pelajaran (file .md)
|
|
|
|
|
|
│ ├── home.md # Halaman utama & daftar pelajaran
|
|
|
|
|
|
│ ├── hello_world.md # Contoh materi
|
|
|
|
|
|
│ └── ...
|
|
|
|
|
|
├── assets/ # Gambar untuk materi (opsional)
|
|
|
|
|
|
│ └── gambar.png
|
2026-08-08 11:57:08 +07:00
|
|
|
|
├── backups/ # Hasil ./elemes.sh dbbackup (dump PostgreSQL)
|
2026-04-01 09:37:09 +07:00
|
|
|
|
├── state/ # State Tailscale (auto-generated)
|
|
|
|
|
|
└── elemes/ # Folder engine LMS (JANGAN DIUBAH)
|
|
|
|
|
|
├── elemes.sh # Script untuk menjalankan LMS
|
|
|
|
|
|
└── ...
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
cd elemes
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
./elemes.sh init # Generate .env, content/, assets/, dan state/ dari contoh
|
2026-04-01 09:37:09 +07:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Output:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
=== Elemes Quick Start ===
|
|
|
|
|
|
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
[buat] .env (edit sesuai kebutuhan, termasuk TEACHER_NAME / TEACHER_TOKEN)
|
2026-04-01 09:37:09 +07:00
|
|
|
|
[buat] content/ (4 materi)
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
[buat] assets/ (untuk gambar/media)
|
|
|
|
|
|
[buat] state/ (untuk Tailscale)
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
Selesai! Langkah selanjutnya:
|
|
|
|
|
|
1. Edit ../.env sesuai kebutuhan
|
|
|
|
|
|
2. Edit ../content/home.md untuk daftar materi
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
3. Jalankan ./elemes.sh teacher untuk membuat akun guru
|
2026-04-01 09:37:09 +07:00
|
|
|
|
4. Jalankan: ./elemes.sh runbuild
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Perintah `init` aman dijalankan ulang — file yang sudah ada tidak akan ditimpa.
|
|
|
|
|
|
|
|
|
|
|
|
### 1. Edit `.env`
|
|
|
|
|
|
|
|
|
|
|
|
Sesuaikan `.env` di parent folder:
|
|
|
|
|
|
|
|
|
|
|
|
```env
|
|
|
|
|
|
# Identitas LMS (tampil di frontend)
|
|
|
|
|
|
APP_BAR_TITLE=Pemrograman C - SMK Nusantara
|
|
|
|
|
|
COPYRIGHT_TEXT=SMK Nusantara @ 2025
|
|
|
|
|
|
PAGE_TITLE_SUFFIX=SMK Nusantara
|
|
|
|
|
|
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
# Lokasi konten (dipakai di dalam container)
|
2026-04-01 09:37:09 +07:00
|
|
|
|
CONTENT_DIR=content
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
|
|
|
|
|
|
# Akun guru (bootstrap canonical)
|
|
|
|
|
|
TEACHER_NAME=Guru LMS # Nama default guru (dipakai ./elemes.sh teacher & first-run)
|
|
|
|
|
|
TEACHER_TOKEN= # Token guru untuk first-run non-interaktif (opsional);
|
|
|
|
|
|
# kosongkan untuk prompt manual via ./elemes.sh teacher
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
# Tailscale (opsional, untuk akses remote)
|
|
|
|
|
|
ELEMES_HOST=lms-smk-nusantara
|
|
|
|
|
|
TS_AUTHKEY=tskey-auth-xxxx
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### 2. Edit Konten
|
|
|
|
|
|
|
|
|
|
|
|
### 3. Buat `home.md` (Halaman Utama)
|
|
|
|
|
|
|
|
|
|
|
|
File `content/home.md` adalah halaman utama LMS. Di sinilah guru mendefinisikan
|
|
|
|
|
|
judul sambutan dan **daftar pelajaran yang tersedia**.
|
|
|
|
|
|
|
|
|
|
|
|
Contoh `content/home.md`:
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
|
## Selamat Datang di Kelas Pemrograman C
|
|
|
|
|
|
|
|
|
|
|
|
Situs LMS ini untuk belajar dasar-dasar pemrograman C.
|
|
|
|
|
|
|
|
|
|
|
|
## Topik yang Akan Dipelajari
|
|
|
|
|
|
|
|
|
|
|
|
1. [Hello, World!](lesson/hello_world.md)
|
|
|
|
|
|
2. [Variables](lesson/variables.md)
|
|
|
|
|
|
3. [Conditions](lesson/conditions.md)
|
|
|
|
|
|
|
|
|
|
|
|
----Available_Lessons----
|
|
|
|
|
|
|
|
|
|
|
|
1. [Hello, World!](lesson/hello_world.md)
|
|
|
|
|
|
2. [Variables](lesson/variables.md)
|
|
|
|
|
|
3. [Conditions](lesson/conditions.md)
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
> **Penting:** Bagian setelah `----Available_Lessons----` adalah daftar pelajaran
|
|
|
|
|
|
> yang dikenali sistem. Pastikan setiap materi yang ada di folder `content/`
|
|
|
|
|
|
> terdaftar di sini.
|
|
|
|
|
|
|
|
|
|
|
|
### 4. Buat Materi Pelajaran
|
|
|
|
|
|
|
|
|
|
|
|
Setiap file `.md` di folder `content/` adalah satu materi pelajaran.
|
|
|
|
|
|
Format dasar materi:
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
|
---LESSON_INFO---
|
|
|
|
|
|
**Learning Objectives:**
|
|
|
|
|
|
- Tujuan pembelajaran 1
|
|
|
|
|
|
- Tujuan pembelajaran 2
|
|
|
|
|
|
|
|
|
|
|
|
**Prerequisites:**
|
|
|
|
|
|
- Materi prasyarat (atau "Tidak ada")
|
|
|
|
|
|
---END_LESSON_INFO---
|
|
|
|
|
|
|
|
|
|
|
|
# Judul Materi
|
|
|
|
|
|
|
|
|
|
|
|
Penjelasan materi di sini. Gunakan format Markdown biasa.
|
|
|
|
|
|
|
|
|
|
|
|
Contoh kode bisa ditulis dalam code block:
|
|
|
|
|
|
|
|
|
|
|
|
` ` `c
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
printf("Hello, World!\n");
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
` ` `
|
|
|
|
|
|
|
|
|
|
|
|
---EXERCISE---
|
|
|
|
|
|
### Latihan
|
|
|
|
|
|
Buat program yang mencetak "Hello, World!"
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
---INITIAL_CODE---
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
// Tulis kode kamu di sini
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
---END_INITIAL_CODE---
|
|
|
|
|
|
|
|
|
|
|
|
---EXPECTED_OUTPUT---
|
|
|
|
|
|
Hello, World!
|
|
|
|
|
|
---END_EXPECTED_OUTPUT---
|
|
|
|
|
|
|
|
|
|
|
|
---KEY_TEXT---
|
|
|
|
|
|
printf
|
|
|
|
|
|
---END_KEY_TEXT---
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Penjelasan Blok-Blok Khusus
|
|
|
|
|
|
|
|
|
|
|
|
| Blok | Fungsi |
|
|
|
|
|
|
|------|--------|
|
|
|
|
|
|
| `---LESSON_INFO---` | Info pelajaran: tujuan & prasyarat |
|
|
|
|
|
|
| `---EXERCISE---` | Deskripsi latihan soal |
|
2026-05-05 15:05:06 +07:00
|
|
|
|
| `---INITIAL_CODE---` | Kode awal C yang muncul di editor siswa |
|
|
|
|
|
|
| `---INITIAL_PYTHON---` | Kode awal Python yang muncul di editor siswa |
|
|
|
|
|
|
| `---INITIAL_CIRCUIT---` | Rangkaian awal Falstad CircuitJS |
|
|
|
|
|
|
| `---INITIAL_QUIZ---` | Data quiz (format JSON) |
|
2026-05-14 19:04:24 +07:00
|
|
|
|
| `---QUIZ_FLASHCARD---` | Kuis format Markdown (Flashcard & Pilihan Ganda) |
|
|
|
|
|
|
| `---slide-start---` | Blok slide presentasi interaktif |
|
2026-05-05 15:05:06 +07:00
|
|
|
|
| `---EXPECTED_OUTPUT---` | Output yang diharapkan untuk C (stdout) |
|
|
|
|
|
|
| `---EXPECTED_OUTPUT_PYTHON---` | Output yang diharapkan untuk Python (stdout) |
|
2026-04-01 09:37:09 +07:00
|
|
|
|
| `---KEY_TEXT---` | Kata kunci yang harus ada di kode siswa |
|
|
|
|
|
|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
#### Fitur Tombol "Coba" (Code Try-out)
|
|
|
|
|
|
|
|
|
|
|
|
LMS menyediakan fitur tombol **"Coba ▶"** pada blok kode di dalam materi pelajaran.
|
|
|
|
|
|
|
|
|
|
|
|
- Tombol **hanya muncul** jika instruktur memberikan label bahasa pada *code fence* (contoh: ` ```c `, ` ```python `, ` ```arduino `).
|
|
|
|
|
|
- Klik tombol akan menyalin kode ke editor dan beralih ke tab yang relevan.
|
|
|
|
|
|
|
2026-04-01 09:37:09 +07:00
|
|
|
|
#### Blok Khusus Circuit (Opsional)
|
|
|
|
|
|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
Untuk materi yang melibatkan simulator rangkaian elektronika Falstad:
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
| Blok | Fungsi |
|
|
|
|
|
|
|------|--------|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
| `` ```circuit `` | Rangkaian yang ditampilkan di materi (embed) |
|
2026-04-01 09:37:09 +07:00
|
|
|
|
| `---INITIAL_CIRCUIT---` | Rangkaian awal untuk latihan |
|
2026-05-05 15:05:06 +07:00
|
|
|
|
| `---EXPECTED_CIRCUIT_OUTPUT---` | Validasi rangkaian (format JSON: node voltage) |
|
2026-04-01 09:37:09 +07:00
|
|
|
|
| `---KEY_TEXT_CIRCUIT---` | Kata kunci rangkaian |
|
|
|
|
|
|
|
2026-04-11 08:39:57 +07:00
|
|
|
|
#### Blok Khusus Arduino/Velxio
|
|
|
|
|
|
|
|
|
|
|
|
Untuk materi yang menggunakan simulator Arduino (Velxio):
|
|
|
|
|
|
|
|
|
|
|
|
| Blok | Fungsi |
|
|
|
|
|
|
|------|--------|
|
|
|
|
|
|
| `---INITIAL_CODE_ARDUINO---` | Kode Arduino awal di editor Velxio |
|
|
|
|
|
|
| `---VELXIO_CIRCUIT---` | Rangkaian komponen (JSON: board, components, wires) |
|
|
|
|
|
|
| `---EXPECTED_SERIAL_OUTPUT---` | Output serial yang diharapkan (subsequence match) |
|
|
|
|
|
|
| `---EXPECTED_WIRING---` | Wiring yang harus dibuat siswa (JSON, lenient) |
|
|
|
|
|
|
| `---KEY_TEXT---` | Kata kunci yang harus ada di kode siswa |
|
2026-06-17 20:34:36 +07:00
|
|
|
|
| `---EVALUATION_CONFIG---` | Konfigurasi tambahan evaluasi Arduino (JSON: e.g. `timeout_ms` dalam milidetik) |
|
2026-04-11 08:39:57 +07:00
|
|
|
|
|
|
|
|
|
|
Contoh materi Arduino:
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
|
---INITIAL_CODE_ARDUINO---
|
|
|
|
|
|
void setup() {
|
|
|
|
|
|
pinMode(13, OUTPUT);
|
|
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void loop() {
|
|
|
|
|
|
digitalWrite(13, HIGH);
|
|
|
|
|
|
Serial.println("LED ON");
|
|
|
|
|
|
delay(1000);
|
|
|
|
|
|
digitalWrite(13, LOW);
|
|
|
|
|
|
Serial.println("LED OFF");
|
|
|
|
|
|
delay(1000);
|
|
|
|
|
|
}
|
|
|
|
|
|
---END_INITIAL_CODE_ARDUINO---
|
|
|
|
|
|
|
|
|
|
|
|
---VELXIO_CIRCUIT---
|
|
|
|
|
|
{
|
|
|
|
|
|
"board": "arduino:avr:uno",
|
|
|
|
|
|
"components": [
|
|
|
|
|
|
{ "type": "wokwi-led", "id": "led-1", "x": 400, "y": -200, "props": { "color": "red", "pin": 13 } }
|
|
|
|
|
|
],
|
|
|
|
|
|
"wires": []
|
|
|
|
|
|
}
|
|
|
|
|
|
---END_VELXIO_CIRCUIT---
|
|
|
|
|
|
|
|
|
|
|
|
---EXPECTED_SERIAL_OUTPUT---
|
|
|
|
|
|
LED ON
|
|
|
|
|
|
LED OFF
|
|
|
|
|
|
---END_EXPECTED_SERIAL_OUTPUT---
|
|
|
|
|
|
|
|
|
|
|
|
---EXPECTED_WIRING---
|
|
|
|
|
|
{
|
|
|
|
|
|
"wires": [
|
|
|
|
|
|
{ "start": { "componentId": "arduino-uno", "pinName": "13" }, "end": { "componentId": "led-1", "pinName": "A" } },
|
|
|
|
|
|
{ "start": { "componentId": "led-1", "pinName": "C" }, "end": { "componentId": "arduino-uno", "pinName": "GND" } }
|
|
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
---END_EXPECTED_WIRING---
|
|
|
|
|
|
|
|
|
|
|
|
---KEY_TEXT---
|
|
|
|
|
|
pinMode
|
|
|
|
|
|
digitalWrite
|
|
|
|
|
|
---END_KEY_TEXT---
|
2026-06-17 20:34:36 +07:00
|
|
|
|
|
|
|
|
|
|
---EVALUATION_CONFIG---
|
|
|
|
|
|
{
|
|
|
|
|
|
"timeout_ms": 8000
|
|
|
|
|
|
}
|
|
|
|
|
|
---END_EVALUATION_CONFIG---
|
2026-04-11 08:39:57 +07:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
##### Referensi Nama Pin Komponen Velxio
|
|
|
|
|
|
|
|
|
|
|
|
| Komponen | Tipe Wokwi | Pin Names |
|
|
|
|
|
|
|----------|------------|----------|
|
|
|
|
|
|
| Arduino Uno | `wokwi-arduino-uno` | `0`-`13`, `A0`-`A5`, `GND`, `5V`, `3.3V` |
|
|
|
|
|
|
| LED | `wokwi-led` | `A` (Anode), `C` (Cathode) |
|
|
|
|
|
|
| Push Button | `wokwi-pushbutton` | `1.l`, `2.l`, `1.r`, `2.r` |
|
|
|
|
|
|
| Resistor | `wokwi-resistor` | `1`, `2` |
|
|
|
|
|
|
| RGB LED | `wokwi-rgb-led` | `R`, `G`, `B`, `COM` |
|
|
|
|
|
|
|
|
|
|
|
|
> **Penting:** Nama pin harus **persis** seperti tabel di atas.
|
|
|
|
|
|
> `componentId` untuk Arduino Uno selalu `arduino-uno` (huruf kecil, dengan strip).
|
|
|
|
|
|
|
|
|
|
|
|
##### Evaluasi Arduino
|
|
|
|
|
|
|
|
|
|
|
|
Sistem mengevaluasi 3 aspek (semua harus lulus):
|
|
|
|
|
|
|
|
|
|
|
|
1. **Key Text** — kata kunci wajib ada di source code siswa
|
|
|
|
|
|
2. **Serial Output** — baris yang diharapkan harus muncul dalam urutan (subsequence match)
|
|
|
|
|
|
3. **Wiring** — koneksi yang diharapkan harus ada (lenient: extra wires OK, GND.1/GND.2 dinormalisasi)
|
|
|
|
|
|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
#### Blok Khusus Flowchart (Opsional)
|
|
|
|
|
|
|
|
|
|
|
|
Untuk materi logika pemrograman menggunakan flowchart:
|
|
|
|
|
|
|
|
|
|
|
|
| Blok | Fungsi |
|
|
|
|
|
|
|------|--------|
|
|
|
|
|
|
| `` ```flowchart `` | Flowchart yang ditampilkan di materi (embed) |
|
|
|
|
|
|
| `---INITIAL_FLOWCHART---` | Struktur flowchart awal untuk latihan |
|
|
|
|
|
|
| `---EXPECTED_FLOWCHART---` | Validasi struktur flowchart (JSON) |
|
|
|
|
|
|
|
2026-05-10 09:39:17 +07:00
|
|
|
|
#### Blok Khusus Quiz (Opsional)
|
|
|
|
|
|
|
|
|
|
|
|
LMS mendukung pembuatan kuis interaktif (Flashcard dan Pilihan Ganda) dalam dua format:
|
|
|
|
|
|
|
|
|
|
|
|
| Blok | Fungsi |
|
|
|
|
|
|
|------|--------|
|
|
|
|
|
|
| `---QUIZ_FLASHCARD---` | Kuis format Markdown (Flashcard & Pilihan Ganda) |
|
|
|
|
|
|
| `---INITIAL_QUIZ---` | Kuis format JSON |
|
|
|
|
|
|
|
|
|
|
|
|
##### Format Markdown (`QUIZ_FLASHCARD`)
|
|
|
|
|
|
|
|
|
|
|
|
Format ini sangat mudah digunakan untuk membuat kuis cepat.
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
|
---QUIZ_FLASHCARD---
|
|
|
|
|
|
### Pertanyaan Flashcard
|
|
|
|
|
|
Ini adalah jawaban yang akan muncul di balik kartu.
|
|
|
|
|
|
> Penjelasan: Muncul setelah kartu dibalik.
|
|
|
|
|
|
|
|
|
|
|
|
### Apa output dari printf("%d", 10 + 5)?
|
|
|
|
|
|
- [] 105
|
|
|
|
|
|
- [x] 15
|
|
|
|
|
|
- [] 10
|
|
|
|
|
|
> Penjelasan: Operasi aritmatika dikerjakan dulu sebelum dicetak.
|
|
|
|
|
|
---END_QUIZ_FLASHCARD---
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
**Aturan Penulisan:**
|
|
|
|
|
|
1. Pertanyaan harus diawali dengan `###`.
|
|
|
|
|
|
2. Untuk **Pilihan Ganda**, gunakan `- []` untuk pilihan salah dan `- [x]` untuk pilihan benar.
|
|
|
|
|
|
3. Untuk **Flashcard**, cukup tulis jawaban langsung di bawah pertanyaan (tanpa `- []`).
|
|
|
|
|
|
4. Penjelasan opsional bisa ditambahkan di akhir pertanyaan dengan awalan `>`.
|
|
|
|
|
|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
### 5. Keamanan & Akses Anonim
|
|
|
|
|
|
|
|
|
|
|
|
Sistem dilengkapi fitur keamanan untuk menjaga stabilitas:
|
|
|
|
|
|
|
|
|
|
|
|
- **Akses Anonim**: Siswa tanpa token tetap bisa mencoba materi, namun dibatasi **1 kali kompilasi setiap 2 menit**.
|
|
|
|
|
|
- **Login Token**: Siswa yang login dengan token **bebas** dari batasan rate limit kompilasi.
|
|
|
|
|
|
- **Proteksi Login**: Percobaan login salah akan ditahan (**tarpitting**) selama 1.5 detik untuk mencegah brute-force.
|
|
|
|
|
|
- **Anti Copy-Paste**: Mencegah siswa menyalin konten materi atau menempel kode dari luar (bisa dikonfigurasi).
|
|
|
|
|
|
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
### 6. Kelola Akun Guru
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
Aplikasi memakai **satu akun guru** (canonical) untuk mengakses dashboard
|
|
|
|
|
|
Laporan Progress (`/progress`). Buat atau update akun guru dengan:
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
cd elemes
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
./elemes.sh teacher
|
2026-04-01 09:37:09 +07:00
|
|
|
|
```
|
|
|
|
|
|
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
Perintah ini akan:
|
|
|
|
|
|
- Meminta **nama guru** — tekan Enter untuk memakai default dari
|
|
|
|
|
|
`TEACHER_NAME` di `.env` (default: `Guru LMS`).
|
|
|
|
|
|
- Meminta **token guru** secara tersembunyi (via stdin — tidak muncul di
|
|
|
|
|
|
layar, process list, maupun shell history).
|
|
|
|
|
|
- **Upsert** satu akun canonical di PostgreSQL: belum ada guru → dibuat;
|
|
|
|
|
|
sudah ada → nama diperbarui **dan token dirotasi** (token lama langsung
|
|
|
|
|
|
tidak berlaku); token sama dengan yang aktif → hanya nama yang diperbarui
|
|
|
|
|
|
(idempotent).
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
> **Catatan:**
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
> - Token guru disimpan sebagai **HMAC-SHA256 digest** — tidak pernah dalam
|
|
|
|
|
|
> bentuk plaintext dan tidak bisa dilihat kembali. Jangan bagikan token
|
|
|
|
|
|
> guru ke siswa.
|
|
|
|
|
|
> - Akun siswa dikelola lewat halaman Laporan Progress (export → edit →
|
|
|
|
|
|
> import CSV) — lihat bagian 9 — atau langsung di PostgreSQL.
|
|
|
|
|
|
|
|
|
|
|
|
#### First-Run Otomatis
|
|
|
|
|
|
|
|
|
|
|
|
`./elemes.sh runbuild`, `run`, dan `runclearbuild` otomatis menjalankan
|
|
|
|
|
|
migrasi schema database (`alembic upgrade head`) saat start. Bila
|
|
|
|
|
|
`TEACHER_TOKEN` di `.env` terisi, akun guru juga di-bootstrap otomatis
|
|
|
|
|
|
(non-interaktif). Bila `TEACHER_TOKEN` kosong, aplikasi tetap start tanpa
|
|
|
|
|
|
akun guru — operator tinggal menjalankan `./elemes.sh teacher` kapan saja.
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
### 7. (Opsional) Tambahkan Gambar
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
Letakkan gambar di folder `assets/` di parent folder.
|
|
|
|
|
|
Referensi di materi menggunakan:
|
|
|
|
|
|
|
|
|
|
|
|
```markdown
|
|
|
|
|
|

|
|
|
|
|
|
```
|
|
|
|
|
|
|
2026-05-05 15:05:06 +07:00
|
|
|
|
### 8. Jalankan LMS
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
cd elemes
|
|
|
|
|
|
|
|
|
|
|
|
# Build dan jalankan (pertama kali atau setelah update)
|
|
|
|
|
|
./elemes.sh runbuild
|
|
|
|
|
|
|
|
|
|
|
|
# Jalankan tanpa build ulang
|
|
|
|
|
|
./elemes.sh run
|
|
|
|
|
|
|
|
|
|
|
|
# Stop
|
|
|
|
|
|
./elemes.sh stop
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
LMS akan berjalan dan bisa diakses melalui Tailscale (jika dikonfigurasi)
|
|
|
|
|
|
atau langsung di `http://localhost:3000`.
|
|
|
|
|
|
|
feat(student-management): kelola siswa round-trip CSV + bulk delete (PG)
- Export siswa terpilih/seluruh + progress ke CSV round-trip (token tidak
pernah diekspor; teacher tidak ikut; urutan deterministik)
- Import preview all-or-nothing: siswa existing di-restore (nama+progress,
token lama dipertahankan), siswa baru dibuat dari student_id kosong +
token; conflict tidak menyebut raw token/digest
- Bulk delete multi-seleksi dengan validasi ketat (teacher terlindungi,
zero-delete bila ada ID bermasalah)
- fix(import): deteksi delimiter berbasis schema — menerima titik koma
(;) maupun koma (,), ekspor tetap ';' + BOM; header tab/campuran ditolak
dengan pesan jelas (regresi: file Excel/Sheets kini bisa diimpor)
- refactor: progress_status.py — kontrak status legacy tunggal dipakai
storage PG, export, dan import; report siswa hanya role student
- UI /progress: dialog import/export + bulk delete, selection store,
respon import tanpa raw token; APP_VERSION 22 -> 26
- ops: ORIGIN env var di podman-compose.yml
- docs: README section 9 (workflow round-trip + delimiter) dan
docs/11-database-migration (kelola siswa via round-trip CSV)
- test: parser round-trip (45), repositories, route management (24,
PostgreSQL), frontend 91, fixtures CSV valid/invalid
2026-08-09 07:29:19 +07:00
|
|
|
|
### 9. Kelola Siswa via Round-Trip CSV (Export → Edit → Import)
|
|
|
|
|
|
|
|
|
|
|
|
Halaman **Laporan Progress** (`/progress`) menyediakan workflow bulat untuk
|
|
|
|
|
|
menambah atau memulihkan siswa tanpa menyentuh database secara manual:
|
|
|
|
|
|
|
|
|
|
|
|
1. **Export CSV** — unduh siswa terpilih (atau seluruh siswa bila tidak ada
|
|
|
|
|
|
yang dipilih) beserta progress. Kolom `token` **selalu kosong** — token
|
|
|
|
|
|
tidak pernah diekspor.
|
|
|
|
|
|
2. **Edit CSV** — ubah nama/progress siswa yang sudah ada, atau tambahkan
|
|
|
|
|
|
baris siswa baru (dengan `student_id` kosong + token).
|
|
|
|
|
|
3. **Import CSV** — preview lalu konfirmasi. Import **all-or-nothing**: satu
|
|
|
|
|
|
saja baris bermasalah membuat seluruh file ditolak tanpa perubahan.
|
|
|
|
|
|
|
|
|
|
|
|
Format CSV round-trip:
|
|
|
|
|
|
|
|
|
|
|
|
```csv
|
|
|
|
|
|
student_id;token;nama_siswa;hello_world;variabel
|
|
|
|
|
|
7eab651c-5eb1-4eb8-8fd2-17fd77aec6df;;Nama Siswa 1;completed;3/4
|
|
|
|
|
|
;TOKEN_87654321;Siswa Baru;not_started;completed
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
- Baris dengan `student_id` terisi (hasil export): token **boleh kosong** —
|
|
|
|
|
|
siswa yang sudah ada **dipulihkan/di-update** (nama & progress diperbarui)
|
|
|
|
|
|
dan **token lama dipertahankan**. Jangan mengisi token baru pada baris
|
|
|
|
|
|
seperti ini — import ditolak.
|
|
|
|
|
|
- Baris dengan `student_id` kosong = **siswa baru**: token **wajib diisi**
|
|
|
|
|
|
(8–128 karakter); server membuat UUID baru.
|
|
|
|
|
|
- `student_id` yang terisi tapi tidak dikenal di database ditolak (tidak ada
|
|
|
|
|
|
pembuatan user dengan UUID sembarangan); teacher tidak pernah bisa diubah
|
|
|
|
|
|
lewat import siswa.
|
|
|
|
|
|
- Status progress: kosong/`not_started` = belum mulai, `completed` = selesai,
|
|
|
|
|
|
`<earned>/<total>` = skor.
|
|
|
|
|
|
- Kolom lesson lain wajib merupakan lesson yang masih aktif; kolom lesson yang
|
|
|
|
|
|
tidak dikenal/duplikat membuat file ditolak.
|
|
|
|
|
|
|
|
|
|
|
|
#### Delimiter CSV
|
|
|
|
|
|
|
|
|
|
|
|
- **Export** dari aplikasi selalu memakai delimiter **titik koma (`;`)** dan
|
|
|
|
|
|
encoding UTF-8 dengan BOM — contoh di atas adalah format canonical.
|
|
|
|
|
|
- **Import** menerima dua delimiter: **titik koma (`;`)** maupun
|
|
|
|
|
|
**koma (`,`)**, agar file yang disimpan dari Excel/LibreOffice/Google
|
|
|
|
|
|
Sheets (yang umumnya memakai koma) bisa langsung dipreview dan diimpor.
|
|
|
|
|
|
Deteksi delimiter dilakukan dari header (kolom wajib `student_id`, `token`,
|
|
|
|
|
|
`nama_siswa` harus muncul sebagai kolom terpisah), bukan dari isi file.
|
|
|
|
|
|
- Delimiter lain (mis. tab) atau header campuran yang tidak bisa dipetakan ke
|
|
|
|
|
|
schema ditolak dengan pesan yang jelas — jangan mengganti delimiter secara
|
|
|
|
|
|
manual dengan find-and-replace, karena itu merusak nilai ber-quote yang
|
|
|
|
|
|
mengandung koma/titik koma.
|
|
|
|
|
|
|
2026-04-01 09:37:09 +07:00
|
|
|
|
## Perintah `elemes.sh`
|
|
|
|
|
|
|
|
|
|
|
|
| Perintah | Fungsi |
|
|
|
|
|
|
|----------|--------|
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
| `./elemes.sh init` | Setup awal: generate `.env`, `content/`, `assets/`, `state/` dari contoh |
|
|
|
|
|
|
| `./elemes.sh run` | Jalankan container (termasuk migrasi schema & bootstrap guru otomatis) |
|
2026-04-01 09:37:09 +07:00
|
|
|
|
| `./elemes.sh runbuild` | Build ulang & jalankan container |
|
|
|
|
|
|
| `./elemes.sh stop` | Hentikan container |
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
| `./elemes.sh teacher` | Buat/update akun guru (upsert; prompt nama & token tersembunyi) |
|
2026-08-08 11:57:08 +07:00
|
|
|
|
| `./elemes.sh dbupgrade` | Jalankan migrasi schema (alembic upgrade head) |
|
|
|
|
|
|
| `./elemes.sh dbstatus` | Cek versi schema database |
|
|
|
|
|
|
| `./elemes.sh dbbackup` | Backup database → `backups/elemes_<ts>.sql` |
|
|
|
|
|
|
| `./elemes.sh dbrestore` | Restore backup terbaru dari `backups/` |
|
|
|
|
|
|
|
|
|
|
|
|
## Database & Penyimpanan (PostgreSQL)
|
|
|
|
|
|
|
|
|
|
|
|
Sejak migrasi Agustus 2026, progress siswa & data token disimpan di **PostgreSQL**
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
— satu-satunya backend — melalui SQLAlchemy + Alembic (migrasi schema). Backend
|
|
|
|
|
|
CSV (`tokens_siswa.csv`, `STORAGE_BACKEND=csv`) sudah **dicabut**: file CSV token
|
|
|
|
|
|
tidak lagi dibuat, dibaca, maupun menjadi *source of truth*.
|
|
|
|
|
|
|
|
|
|
|
|
- Akun siswa & guru tersimpan di PostgreSQL (container `postgres`); akun guru
|
|
|
|
|
|
dikelola via `./elemes.sh teacher` atau bootstrap otomatis `TEACHER_TOKEN`.
|
|
|
|
|
|
- Token hanya disimpan sebagai **HMAC-SHA256 digest** (pepper: `TOKEN_PEPPER`
|
|
|
|
|
|
di `.env` — jangan hilangkan, semua token bergantung padanya).
|
|
|
|
|
|
- Daftar lesson disinkronkan **otomatis** dari `content/home.md` ke database
|
|
|
|
|
|
setiap kali aplikasi start (tidak ada perintah sinkronisasi manual).
|
|
|
|
|
|
- **Backup rutin wajib**: `./elemes.sh dbbackup` (dump ke `backups/`);
|
|
|
|
|
|
restore via `./elemes.sh dbrestore`.
|
|
|
|
|
|
- Panduan lengkap (arsitektur, riwayat migrasi): `docs/11-database-migration.md`.
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
## Contoh Siap Pakai
|
|
|
|
|
|
|
|
|
|
|
|
Folder `examples/` berisi contoh lengkap yang digunakan oleh `./elemes.sh init`:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
examples/
|
|
|
|
|
|
├── content/
|
2026-04-11 08:39:57 +07:00
|
|
|
|
│ ├── home.md # Halaman utama (7 materi)
|
|
|
|
|
|
│ ├── hello_world.md # Materi dasar: Hello World
|
|
|
|
|
|
│ ├── variabel.md # Materi dasar: Variabel
|
|
|
|
|
|
│ ├── rangkaian_dasar.md # Materi hybrid: C + Circuit
|
|
|
|
|
|
│ ├── led_blink_arduino.md # Arduino: LED Blink + wiring
|
|
|
|
|
|
│ ├── hello_serial_arduino.md # Arduino: Serial Monitor (tanpa wiring)
|
|
|
|
|
|
│ ├── button_input_arduino.md # Arduino: Button + LED input/output
|
|
|
|
|
|
│ └── traffic_light_arduino.md # Arduino: Lampu lalu lintas 3 LED
|
2026-04-01 09:37:09 +07:00
|
|
|
|
```
|
|
|
|
|
|
|
2026-04-11 08:39:57 +07:00
|
|
|
|
### Jenis Materi
|
|
|
|
|
|
|
|
|
|
|
|
| Tipe | Contoh | Evaluasi |
|
|
|
|
|
|
|------|--------|----------|
|
|
|
|
|
|
| **C/Python** | `hello_world.md`, `variabel.md` | Output stdout |
|
|
|
|
|
|
| **Hybrid** | `rangkaian_dasar.md` | C output + node voltage |
|
|
|
|
|
|
| **Arduino (Velxio)** | `led_blink_arduino.md` | Key text + serial + wiring |
|
|
|
|
|
|
| **Arduino (tanpa wiring)** | `hello_serial_arduino.md` | Key text + serial |
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
## FAQ
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana menambah materi baru?**
|
|
|
|
|
|
Buat file `.md` baru di `content/`, lalu tambahkan link-nya di `content/home.md`
|
|
|
|
|
|
(di bagian daftar topik DAN bagian `----Available_Lessons----`).
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
Daftar lesson disinkronkan otomatis ke database saat aplikasi start — tidak
|
|
|
|
|
|
perlu perintah manual.
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana menambah siswa baru?**
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
Buka halaman **Laporan Progress** (`/progress`), Export CSV, tambahkan baris
|
|
|
|
|
|
baru (`student_id` kosong + token unik + nama siswa), lalu Import. Detail
|
|
|
|
|
|
format ada di bagian 9.
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
**Q: Siswa lupa token-nya?**
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
Token tidak bisa dilihat kembali — hanya digest HMAC yang tersimpan. Buatkan
|
|
|
|
|
|
siswa baru dengan token baru via halaman `/progress` (Import CSV, baris dengan
|
|
|
|
|
|
`student_id` kosong), lalu hapus akun lama lewat bulk delete.
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana melihat progress siswa?**
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
Login menggunakan token guru (kelola via `./elemes.sh teacher`). Dashboard progress
|
2026-08-08 11:57:08 +07:00
|
|
|
|
akan otomatis muncul. Data dibaca dari PostgreSQL.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana backup/restore database?**
|
|
|
|
|
|
Jalankan `./elemes.sh dbbackup` — dump PostgreSQL tersimpan di
|
|
|
|
|
|
`backups/elemes_<timestamp>.sql`. Restore: `./elemes.sh dbrestore`
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
(memakai backup terbaru). Untuk mengubah data siswa, gunakan halaman
|
|
|
|
|
|
`/progress` (export → edit → import CSV).
|
2026-04-01 09:37:09 +07:00
|
|
|
|
|
|
|
|
|
|
**Q: Apakah harus pakai Tailscale?**
|
|
|
|
|
|
Tidak. Tailscale opsional untuk akses remote. Tanpa Tailscale, LMS
|
|
|
|
|
|
bisa diakses di jaringan lokal via `http://localhost:3000`.
|
|
|
|
|
|
|
2026-04-11 08:39:57 +07:00
|
|
|
|
**Q: Bagaimana membuat materi Arduino baru?**
|
|
|
|
|
|
Buat file `.md` baru di `content/` dengan blok `---INITIAL_CODE_ARDUINO---`
|
|
|
|
|
|
dan `---VELXIO_CIRCUIT---`. Lihat contoh di `led_blink_arduino.md`
|
|
|
|
|
|
atau `button_input_arduino.md`. Pastikan `componentId` dan `pinName`
|
|
|
|
|
|
di `EXPECTED_WIRING` sesuai dengan tabel referensi pin di atas.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Materi Arduino bisa tanpa wiring?**
|
2026-08-08 11:57:08 +07:00
|
|
|
|
Ya. Jika hanya evaluasi kode + serial output, cukup sertakan
|
2026-04-11 08:39:57 +07:00
|
|
|
|
`VELXIO_CIRCUIT` dengan `components: []` kosong dan hilangkan blok
|
|
|
|
|
|
`EXPECTED_WIRING`. Contoh: `hello_serial_arduino.md`.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Apakah wiring harus persis sama?**
|
|
|
|
|
|
Tidak harus. Evaluasi bersifat *lenient*: koneksi yang diharapkan harus ada,
|
|
|
|
|
|
tapi siswa boleh menambahkan kabel ekstra. Pin GND juga dinormalisasi
|
|
|
|
|
|
(GND.1 = GND.2 = GND).
|
|
|
|
|
|
|
2026-08-08 11:57:08 +07:00
|
|
|
|
**Q: Bagaimana cara membuat slide presentasi?**
|
|
|
|
|
|
Gunakan blok `---slide-start---` dan `---slide-end---` di materi markdown.
|
|
|
|
|
|
Setiap slide bisa berisi teks, gambar, code fence, dan embed (Canva/YouTube/Figma).
|
|
|
|
|
|
Contoh: `rangkaian_dasar.md`.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana membuat flowchart interaktif?**
|
|
|
|
|
|
Gunakan blok `` ```flowchart `` di materi markdown. Flowchart mendukung
|
|
|
|
|
|
node, edge, obstacle-aware routing, dan evaluasi frontend.
|
|
|
|
|
|
Contoh: `flowchart.md`.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana cara embed konten (Canva, YouTube, Google Docs, Figma)?**
|
|
|
|
|
|
Gunakan fence ```embed dengan raw HTML embed code dari platform:
|
|
|
|
|
|
|
|
|
|
|
|
````markdown
|
|
|
|
|
|
```embed
|
|
|
|
|
|
<div style="position: relative; width: 100%; padding-top: 56.25%;">
|
|
|
|
|
|
<iframe loading="lazy" src="https://www.canva.com/design/.../view?embed" allowfullscreen></iframe>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
```
|
|
|
|
|
|
````
|
|
|
|
|
|
|
|
|
|
|
|
Canva wajib URL dengan `?embed`. Lihat `docs/06-embed-content.md` untuk detail.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana membuat kuis?**
|
|
|
|
|
|
Gunakan blok `---QUIZ_FLASHCARD---` dengan format Flashcard atau Pilihan Ganda.
|
|
|
|
|
|
Lihat `docs/07-quiz-authoring.md` untuk panduan lengkap.
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Apakah ada playground interaktif untuk mencoba kode?**
|
|
|
|
|
|
Ya. Route `/playground` menyediakan tab Velxio (Arduino simulator), Flowchart,
|
|
|
|
|
|
Circuit, dan Code. Fitur run sesi PTY mendukung Python `input()` dan C `scanf()`.
|
|
|
|
|
|
FileTree collapsible mendukung filter per bahasa (C/Python).
|
|
|
|
|
|
|
|
|
|
|
|
**Q: Bagaimana cara deploy firmware via USB (bukan BLE)?**
|
|
|
|
|
|
Gunakan browser Chrome desktop. DeployTab mendukung auto-detect:
|
|
|
|
|
|
Chrome desktop → USB (Web Serial API), mobile → BLE (Web Bluetooth).
|
|
|
|
|
|
Pilih tab Deploy, klik "Deploy" — firmware akan di-flash via kabel USB.
|
|
|
|
|
|
|
2026-04-01 09:37:09 +07:00
|
|
|
|
## Persyaratan Sistem
|
|
|
|
|
|
|
|
|
|
|
|
- [Podman](https://podman.io/) dan `podman-compose`
|
|
|
|
|
|
- Koneksi internet (saat build pertama kali untuk download image)
|