rename web/ to admin/, along with the web-named build and cli identifiers
This commit is contained in:
@@ -4,7 +4,7 @@ This page takes you from a checkout of the repository to a running nxdns that an
|
||||
|
||||
Follow the steps in order. Each one says what it did.
|
||||
|
||||
Every command below was executed on x86_64 Linux with Zig 0.16.0, Node.js 24.14.1, dig 9.20.26 and curl 8.21.0. Steps 2, 4 to 11, 13 and 14 were re-run end to end for this revision, and the transcripts are that run's output with the tutorial directory substituted. Two things were not re-run: the browser page in step 12 — its endpoints were exercised, the page itself was not opened — and the `npm` build in step 1, whose `web/dist` was already on disk and is the one the binary under test embeds. The ZON block at the end of step 14 was checked with `nxdns check --config` rather than started.
|
||||
Every command below was executed on x86_64 Linux with Zig 0.16.0, Node.js 24.14.1, dig 9.20.26 and curl 8.21.0. Steps 2, 4 to 11, 13 and 14 were re-run end to end for this revision, and the transcripts are that run's output with the tutorial directory substituted. Two things were not re-run: the browser page in step 12 — its endpoints were exercised, the page itself was not opened — and the `npm` build in step 1, whose `admin/dist` was already on disk and is the one the binary under test embeds. The ZON block at the end of step 14 was checked with `nxdns check --config` rather than started.
|
||||
|
||||
## What you need
|
||||
|
||||
@@ -18,18 +18,18 @@ Build commands run from the repository root. The server and the queries use `~/n
|
||||
## 1. Build the web interface
|
||||
|
||||
```sh
|
||||
cd web && npm ci && npm run build && cd ..
|
||||
cd admin && npm ci && npm run build && cd ..
|
||||
```
|
||||
|
||||
This produces `web/dist`. Do not skip it. A plain `zig build` embeds `web/dist-placeholder`, a one-page status stub, and you would reach step 12 and find no admin interface there.
|
||||
This produces `admin/dist`. Do not skip it. A plain `zig build` embeds `admin/dist-placeholder`, a one-page status stub, and you would reach step 12 and find no admin interface there.
|
||||
|
||||
## 2. Build nxdns
|
||||
|
||||
```sh
|
||||
zig build -Dweb-dist=web/dist
|
||||
zig build -Dadmin-dist=admin/dist
|
||||
```
|
||||
|
||||
The binary is `zig-out/bin/nxdns`, with `web/dist` embedded in it. SQLite and mbedTLS are vendored and built by this command, so the first build takes a while; later builds are cached.
|
||||
The binary is `zig-out/bin/nxdns`, with `admin/dist` embedded in it. SQLite and mbedTLS are vendored and built by this command, so the first build takes a while; later builds are cached.
|
||||
|
||||
## 3. Write a configuration file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user