first commit
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
# web-anindhaloka
|
||||
|
||||
## Requirements
|
||||
|
||||
- **Node.js** `^20.19.0` atau `>=22.12.0`
|
||||
- **npm** (terpasang bersama Node.js)
|
||||
|
||||
## Instalasi
|
||||
|
||||
1. Clone/masuk ke folder project:
|
||||
```bash
|
||||
cd web-anindhaloka
|
||||
```
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
3. (Opsional) Buat file `.env` di root project untuk mengatur URL backend API:
|
||||
```
|
||||
VITE_API_URL=http://localhost:8000
|
||||
```
|
||||
Jika tidak diset, default-nya `http://localhost:8000`.
|
||||
|
||||
## Menjalankan di Local
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Buka `http://localhost:5173` di browser.
|
||||
|
||||
## Perintah Lain
|
||||
|
||||
| Perintah | Fungsi |
|
||||
|---|---|
|
||||
| `npm run dev` | Jalankan dev server |
|
||||
| `npm run build` | Type-check + build produksi ke folder `dist/` |
|
||||
| `npm run preview` | Preview hasil build produksi secara lokal |
|
||||
| `npm run lint` | Jalankan ESLint |
|
||||
|
||||
## Dependencies
|
||||
|
||||
### Dependencies (runtime)
|
||||
|
||||
| Package | Versi |
|
||||
|---|---|
|
||||
| `framer-motion` | ^12.42.2 |
|
||||
| `lucide-react` | ^1.17.0 |
|
||||
| `react` | ^19.2.6 |
|
||||
| `react-dom` | ^19.2.6 |
|
||||
| `react-router-dom` | ^7.16.0 |
|
||||
|
||||
### devDependencies (build & tooling)
|
||||
|
||||
| Package | Versi |
|
||||
|---|---|
|
||||
| `@eslint/js` | ^10.0.1 |
|
||||
| `@types/node` | ^24.12.3 |
|
||||
| `@types/react` | ^19.2.14 |
|
||||
| `@types/react-dom` | ^19.2.3 |
|
||||
| `@vitejs/plugin-react` | ^6.0.1 |
|
||||
| `eslint` | ^10.3.0 |
|
||||
| `eslint-plugin-react-hooks` | ^7.1.1 |
|
||||
| `eslint-plugin-react-refresh` | ^0.5.2 |
|
||||
| `globals` | ^17.6.0 |
|
||||
| `typescript` | ~6.0.2 |
|
||||
| `typescript-eslint` | ^8.59.2 |
|
||||
| `vite` | ^8.0.12 |
|
||||
Reference in New Issue
Block a user