@hamak/smart-data-dico 1.11.0 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -292,6 +292,44 @@ cd frontend && npm run dev # port 3000
|
|
|
292
292
|
|
|
293
293
|
In dev, the backend serves the bundled sample project at `samples/eshop/` (three packages: `order-service`, `product-service`, `user-service`). Override with `DATA_DIR=/path/to/your/project npm run dev` to point at your own data.
|
|
294
294
|
|
|
295
|
+
### Option C — Restricted networks (no npm registry for this package, or no git)
|
|
296
|
+
|
|
297
|
+
When the npm registry copy of the package is unavailable, install it from git or
|
|
298
|
+
from a prebuilt release tarball. These do **not** require the package to be on a
|
|
299
|
+
registry; the lower options additionally avoid needing the `git` binary.
|
|
300
|
+
|
|
301
|
+
**C1 — Prebuilt tarball over `curl` (no git, no build, fully offline-capable).**
|
|
302
|
+
Each release attaches a **self-contained** tarball (esbuild-bundled backend, no
|
|
303
|
+
runtime `node_modules`; Node ≥ 18). Download and install it directly:
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
curl -fL -o smart-data-dico.tgz \
|
|
307
|
+
https://github.com/amah/smart-data-dico/releases/download/v1.11.0/hamak-smart-data-dico-1.11.0.tgz
|
|
308
|
+
npm install -g ./smart-data-dico.tgz
|
|
309
|
+
smart-data-dico --data-dir /path/to/your/project
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
For a fully air-gapped machine, download the `.tgz` on a connected host, copy it
|
|
313
|
+
across, and run the `npm install -g ./…tgz` step there — it needs no network.
|
|
314
|
+
|
|
315
|
+
**C2 — Build from git with the helper script.** Clones a pinned ref, installs
|
|
316
|
+
deps (root/frontend/backend), builds both bundles, packs a tarball, and installs
|
|
317
|
+
the CLI globally:
|
|
318
|
+
|
|
319
|
+
```bash
|
|
320
|
+
scripts/install-from-git.sh # build v1.11.0, install globally
|
|
321
|
+
scripts/install-from-git.sh --pack-only # just produce the tarball (prints its path)
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
Add `--archive` (auto-enabled when `git` is absent) to fetch the source via
|
|
325
|
+
`curl`/`wget` instead of cloning. Useful env/flags: `SDD_REF` (tag/branch/commit),
|
|
326
|
+
`SDD_REPO_URL` (internal mirror or SSH), `-d` (work dir). Run `scripts/install-from-git.sh --help`
|
|
327
|
+
for the full list.
|
|
328
|
+
|
|
329
|
+
> Note: C2 still pulls build **dependencies** from whichever npm registry / proxy
|
|
330
|
+
> `npm` is configured to use. If even that is blocked, use **C1** — build the
|
|
331
|
+
> tarball once on a connected machine (`--pack-only`) and install the artifact offline.
|
|
332
|
+
|
|
295
333
|
### Option C — Docker
|
|
296
334
|
|
|
297
335
|
```bash
|