update fix package and naming to cpsp from new-v2
This commit is contained in:
1 parent
54eb277c16
commit
149fad0173
7 files changed
+29
-22
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "dashboard-new-v2-backend",
|
||||
"name": "dashboard-cpsp-backend",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
|
||||
Generated
+10
-7
@@ -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": {
|
||||
|
||||
+5
-1
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user