diff --git a/DOCKER.md b/DOCKER.md index 28a2283..4d77bad 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -1,6 +1,6 @@ # Docker Deployment Guide -Deploy **dashboard-new-v2** with Docker Compose. Layout mirrors the legacy `dashboard/` stack (Postgres + API + Nginx frontend), adapted for Django + Gunicorn and a separate cron container. +Deploy **dashboard-cpsp** with Docker Compose. Layout mirrors the legacy `dashboard/` stack (Postgres + API + Nginx frontend), adapted for Django + Gunicorn and a separate cron container. ## Architecture @@ -45,7 +45,7 @@ docker compose version ## Quick start ```bash -cd dashboard-new-v2 +cd dashboard-cpsp cp docker/.env.example .env # Edit .env — set SECRET_KEY and DB_PASSWORD @@ -216,4 +216,4 @@ docker compose exec api python manage.py bootstrap_admin --- -Docker deployment guide — dashboard-new-v2 +Docker deployment guide — dashboard-cpsp diff --git a/README.md b/README.md index aa0a9b2..1075f39 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# dashboard-new-v2 +# dashboard-cpsp Poultry dashboard SPA. Looks like the legacy `dashboard/` app and talks to the Django API in `backend/` (`/api/v1/`). ## Project layout ``` -dashboard-new-v2/ +dashboard-cpsp/ backend/ ← Django API (manage.py, apps, migrations) components/ ← pages and UI services/ ← API client @@ -25,7 +25,7 @@ Install the Python dependencies once — only needed if Django/DRF aren't alread in your Python environment (they're listed in `backend/requirements.txt`): ```bash -cd dashboard-new-v2/backend +cd dashboard-cpsp/backend python -m venv .venv # Windows: .venv\Scripts\activate # macOS/Linux: source .venv/bin/activate @@ -35,7 +35,7 @@ pip install -r requirements.txt Then set up the database and seed data: ```bash -cd dashboard-new-v2/backend +cd dashboard-cpsp/backend python manage.py migrate python manage.py seed_demo # or via the npm wrapper: npm run seed @@ -51,7 +51,7 @@ Seed logins: **Frontend** (terminal 2): ```bash -cd dashboard-new-v2 +cd dashboard-cpsp cp .env.example .env npm install ``` @@ -61,7 +61,7 @@ npm install **Terminal 1 — API:** ```bash -cd dashboard-new-v2/backend +cd dashboard-cpsp/backend npm run dev # `node dev.mjs` starts Django runserver :8000, preferring the .venv python if # present, otherwise the global python (so no pip install is needed when the @@ -71,7 +71,7 @@ npm run dev **Terminal 2 — UI:** ```bash -cd dashboard-new-v2 +cd dashboard-cpsp npm run dev ``` diff --git a/backend/README.md b/backend/README.md index 0c2f6e7..6efc67d 100644 --- a/backend/README.md +++ b/backend/README.md @@ -12,7 +12,7 @@ Greenfield Django 5 + Wagtail 6 + DRF API aligned to `ERD_dashboard.png`. ## Quick start (local, no Docker) -From `dashboard-new-v2/backend`: +From `dashboard-cpsp/backend`: ```bash python -m venv .venv @@ -30,7 +30,7 @@ Seed creates user `admin` / `admin123`, then seeds the default Sukawarna demo da ## Docker Compose -From the project root (`dashboard-new-v2/`): +From the project root (`dashboard-cpsp/`): ```bash cp docker/.env.example .env diff --git a/backend/package.json b/backend/package.json index 37f9228..74dd296 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,5 +1,5 @@ { - "name": "dashboard-new-v2-backend", + "name": "dashboard-cpsp-backend", "private": true, "version": "0.1.0", "type": "module", diff --git a/package-lock.json b/package-lock.json index 28f6a12..65a1e05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "dashboard-new-v2", + "name": "dashboard-cpsp", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "dashboard-new-v2", + "name": "dashboard-cpsp", "version": "0.1.0", "dependencies": { "exceljs": "^4.4.0", @@ -7813,13 +7813,16 @@ } }, "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz", + "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/victory-vendor": { diff --git a/package.json b/package.json index fe951e0..8630861 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "dashboard-new-v2", + "name": "dashboard-cpsp", "private": true, "version": "0.1.0", "type": "module", @@ -24,6 +24,10 @@ "prettier --write" ] }, + "overrides": { + "uuid": "^11.1.1", + "tmp": "^0.2.6" + }, "dependencies": { "exceljs": "^4.4.0", "html2canvas": "^1.4.1", diff --git a/scripts/peek_xlsx.py b/scripts/peek_xlsx.py index 5d1d430..7995321 100644 --- a/scripts/peek_xlsx.py +++ b/scripts/peek_xlsx.py @@ -1,6 +1,6 @@ import openpyxl -path = r"D:\DashboardCPSP\rework\dashboard-cpsp\dashboard-new-v2\backup\Laporan_Akhir-Siklus_Sukawarna_Kandang-Atas_Akhir-Siklus_2026-05-22_sd_2026-07-09.xlsx" +path = r"D:\DashboardCPSP\rework\dashboard-cpsp\backup\Laporan_Akhir-Siklus_Sukawarna_Kandang-Atas_Akhir-Siklus_2026-05-22_sd_2026-07-09.xlsx" wb = openpyxl.load_workbook(path, data_only=True)