Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
assets/ | 03-May-2024 | - | 452 | 451 | ||
dist/ | 03-May-2024 | - | 1,631 | 1,521 | ||
ts/ | 03-May-2024 | - | 2,501 | 2,001 | ||
web/ | 03-May-2024 | - | 28 | 23 | ||
.gitignore | D | 03-May-2024 | 100 | 7 | 7 | |
Android.bp | D | 03-May-2024 | 4.4 KiB | 174 | 151 | |
CMakeLists.txt | D | 03-May-2024 | 856 | 21 | 17 | |
README.md | D | 03-May-2024 | 1.2 KiB | 58 | 37 | |
package-lock.json | D | 03-May-2024 | 815.1 KiB | 20,996 | 20,995 | |
package.json | D | 03-May-2024 | 2.7 KiB | 87 | 86 | |
rollup.config.mjs | D | 03-May-2024 | 1.5 KiB | 48 | 47 | |
tsconfig.json | D | 03-May-2024 | 471 | 21 | 20 | |
web-dev-server.config.mjs | D | 03-May-2024 | 392 | 14 | 11 |
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