tree: 48a08184b8c7a030225946180fff6caee84a00ba [path history] [tgz]
  1. assets/
  2. dist/
  3. ts/
  4. web/
  5. .gitignore
  6. Android.bp
  7. CMakeLists.txt
  8. package-lock.json
  9. package.json
  10. README.md
  11. rollup.config.mjs
  12. tsconfig.json
  13. web-dev-server.config.mjs
ui/README.md

netsim web UI

This directory contains the Web UI for netsim.

Prerequisite

The netsimd web server must be up and running.

Build Commands

Firstly, you must enter the ui directory and run npm install.

cd $REPO/tools/netsim/ui
npm install

Command for compiling and building web UI:

npm run build

Command for translating netsim's model.proto into model.ts:

npm run tsproto

Command for running local web development server:

npm start

Local web server will be served in http://localhost:8000/web/

Scripts

  • build compiles TypeScript into JavaScript and bundle to distribution with rollup
  • tsproto translates netsim's model.proto into model.ts
  • start runs your app for development, reloading on file changes

Tooling configs

  • package.json contains all npm packages and scripts for web development
  • rollup.config.mjs applies import mappings to CDNs and bundles to distribution
  • tsconfig.json has configurations for typescript compiling.

Authors

[Hyun Jae Moon] hyunjaemoon@google.com

[Bill Schilit] schilit@google.com