50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
# Student-Safe Package (NPM Ready)
|
|
|
|
Paket ini dibuat agar mahasiswa **tidak menerima source code penuh web utama**.
|
|
|
|
## Jalankan project
|
|
|
|
```bash
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
Buka URL dari Vite (default: `http://localhost:5173`) lalu akses launcher di `/`.
|
|
|
|
## Script NPM
|
|
|
|
- `npm run dev` → jalankan local dev server
|
|
- `npm run build` → build static output ke folder `dist`
|
|
- `npm run preview` → preview hasil build
|
|
|
|
## Struktur
|
|
|
|
- `index.html` → launcher link group
|
|
- `assets/global/`
|
|
- `hero.webp`
|
|
- `footer.png`
|
|
- `logo.png`
|
|
- `groups/group-01/{index.html, style.css}`
|
|
- `groups/group-02/{index.html, style.css}`
|
|
- `groups/group-03/{index.html, style.css}`
|
|
- `groups/group-04/{index.html, style.css}`
|
|
- `groups/group-05/{index.html, style.css}`
|
|
|
|
## Aturan
|
|
|
|
1. Tiap kelompok hanya mengedit foldernya sendiri.
|
|
2. Area konten yang boleh diubah hanya:
|
|
|
|
```html
|
|
<div id="assignment-body"> ... </div>
|
|
```
|
|
|
|
3. Jangan ubah path global asset (`../../assets/global/...`).
|
|
4. Tidak ada JS global project.
|
|
|
|
## Output Pengumpulan
|
|
|
|
Setiap kelompok submit perubahan di:
|
|
- `groups/group-xx/index.html`
|
|
- `groups/group-xx/style.css` (jika perlu styling tambahan)
|