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,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
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user