• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

assets/14-Jan-2024-452451

dist/15-Dec-2024-1,7151,606

ts/15-Dec-2024-3,1082,335

web/15-Dec-2024-4334

.gitignoreD14-Jan-2024100 77

Android.bpD15-Dec-20244.2 KiB167145

CMakeLists.txtD15-Dec-20243.1 KiB5348

README.mdD14-Jan-20241.2 KiB5837

package-lock.jsonD14-Jan-2024815.1 KiB20,99620,995

package.jsonD15-Dec-20242.8 KiB8786

rollup.config.mjsD15-Dec-20241.5 KiB4847

tsconfig.jsonD14-Jan-2024471 2120

web-dev-server.config.mjsD14-Jan-2024392 1411

README.md

1<p align="center">
2  <img width="200" src="https://open-wc.org/hero.png"></img>
3</p>
4
5## netsim web UI
6
7This directory contains the Web UI for netsim.
8
9## Prerequisite
10
11The netsimd web server must be up and running.
12
13## Build Commands
14
15Firstly, you must enter the ui directory and run npm install.
16
17```sh
18cd $REPO/tools/netsim/ui
19npm install
20```
21
22Command for compiling and building web UI:
23
24```sh
25npm run build
26```
27
28Command for translating netsim's model.proto into model.ts:
29
30```sh
31npm run tsproto
32```
33
34Command for running local web development server:
35
36```sh
37npm start
38```
39
40Local web server will be served in `http://localhost:8000/web/`
41
42## Scripts
43
44- `build` compiles TypeScript into JavaScript and bundle to distribution with rollup
45- `tsproto` translates netsim's model.proto into model.ts
46- `start` runs your app for development, reloading on file changes
47
48## Tooling configs
49
50- `package.json` contains all npm packages and scripts for web development
51- `rollup.config.mjs` applies import mappings to CDNs and bundles to distribution
52- `tsconfig.json` has configurations for typescript compiling.
53
54## Authors
55
56[Hyun Jae Moon] hyunjaemoon@google.com
57
58[Bill Schilit] schilit@google.com