Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ npm start -w ui5.tutorial.odatav4.step03
npm run typecheck
```

Rely on `npm start -w <workspace>` when you need to see a specific step in a browser — the root dev server is heavier and only needed for site-level checks.
Rely on `npm start -w <workspace>` when you need to see a specific step in a browser — the root dev server is heavier and only needed for site-level checks. By default, the root preview server and its BrowserSync proxy/UI bind only to `127.0.0.1`; `npm start -- --host 0.0.0.0` explicitly enables trusted-network access (or pass a specific LAN interface address). File requests remain confined to the repository checkout, including symlink targets. Network mode has no authentication and exposes repository files and the BrowserSync UI to reachable clients. This is a development preview, not a public hosting server.

## Tutorial namespace and package naming

Expand Down Expand Up @@ -122,7 +122,7 @@ Verify a rippling change with `git grep` before *and* after — the count of mat

## Verification

- **Static:** `npm run typecheck` for TS integrity, `git grep` for corpus-wide cleanliness.
- **Static:** `npm run typecheck` for TS integrity, `npm run test:dev-server` for dev-server security regressions (both run via `npm test`), `git grep` for corpus-wide cleanliness.
- **Rendered:** `npm start`, then load a step README in the browser (e.g. `http://localhost:1337/packages/walkthrough/steps/09/README.md`). Toggle the TS/JS button and confirm both languages render correctly.
- **Built:** `npm run build`, then `open dist/walkthrough/build/09/index-cdn.html` for the built app, or `dist/walkthrough/steps/09/README.html` for the built README.

Expand Down
14 changes: 13 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,19 @@ Then, to actually start the server, run
npm start
```

A browser window will automatically open (on port 3000 or the next free port) and automatically reload on every saved change.
A browser window will automatically open (on port 3000 or the next free port) and automatically reload on every saved change. By default, the root preview server and its BrowserSync proxy/UI bind only to `127.0.0.1`. File requests are confined to the repository checkout, including symlink targets.

To share the preview on a trusted local network, run:

```sh
npm start -- --host 0.0.0.0
```

You can instead pass a specific LAN interface address to `--host`. From another device, open `http://<your-LAN-IP>:1337/packages/walkthrough/`, or use the BrowserSync port (3000 or the next free port) for live reload. `npm start -- --help` lists the options.

> ⚠️ Network mode has no authentication and exposes repository files and the BrowserSync UI to anyone who can reach the listener. Use it only on a trusted network; this is a development preview, not a public hosting server.

Run the dev-server security regression tests with `npm run test:dev-server`. These also run as part of `npm test`, before the workspace typechecks.


### Writing *one* document which covers both JavaScript and TypeScript without duplication
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ npm start

After `npm start`, open <http://localhost:1337/packages/walkthrough/> (or any other tutorial's `packages/<name>/`). The dev server renders the markdown overview, rewrites the published `https://ui5.github.io/tutorials/...` URLs to point at the local `dist/`, and serves the built apps from the same origin.

By default, the root preview server and its BrowserSync proxy/UI bind only to `127.0.0.1`. File requests are confined to the repository checkout, including symlink targets.

To share the preview on a trusted local network, explicitly choose a bind address:

```sh
npm start -- --host 0.0.0.0
# Or bind only to a specific LAN interface:
npm start -- --host 192.168.1.10
```

From another device, open `http://<your-LAN-IP>:1337/packages/walkthrough/`, or use the BrowserSync port (3000 or the next free port) for live reload. `npm start -- --help` lists the options.

> ⚠️ Network mode has no authentication and exposes repository files and the BrowserSync UI to anyone who can reach the listener. Use it only on a trusted network; this is a development preview, not a public hosting server.

To run a single step directly without going through the build:

```sh
Expand Down
Loading
Loading