You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webapp/README.md
+73-14Lines changed: 73 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,38 +3,97 @@ Webapp AS Visualization
3
3
4
4
More installation and usage information is available on the [SCION Tutorials web page for webapp](https://netsec-ethz.github.io/scion-tutorials/as_visualization/webapp/).
5
5
6
-
## Webapp Setup
6
+
## Webapp
7
7
Webapp is a Go application that will serve up a static web portal to make it easy to visualize and experiment with SCIONLab test apps on a virtual machine.
8
8
9
-
### Install
9
+
10
+
## Packaged Setup/Run
11
+
For running `webapp` in a package environment, like the default [SCIONLab](https://www.scionlab.org) environment, it will require command-line options for `webapp` to find the tools its requires. In most cases, the default `scionlab` and `scion-apps` packages will need to be specified on the command-line.
12
+
13
+
To run the Go Web UI at a specific address `-a` and port `-p` like 0.0.0.0:8000 for a SCIONLab VM use:
14
+
```shell
15
+
webapp \
16
+
-a 0.0.0.0 \
17
+
-p 8000 \
18
+
-r /var/lib/scion/webapp/web/data \
19
+
-srvroot /var/lib/scion/webapp/web \
20
+
-sabin /usr/bin \
21
+
-sroot /etc/scion \
22
+
-sbin /usr/bin \
23
+
-sgen /etc/scion/gen \
24
+
-sgenc /var/lib/scion \
25
+
-slogs /var/log/scion
26
+
```
27
+
Now, open a web browser at [http://127.0.0.1:8000](http://127.0.0.1:8000), to begin.
28
+
29
+
30
+
## Development Setup/Run
31
+
For running `webapp` in a development environment for the SCION Infrastructure, follow the SCIONLab development install and run process at [https://github.com/netsec-ethz/netsec-scion](https://github.com/netsec-ethz/netsec-scion).
32
+
33
+
Then, follow these steps to install SCIONLab Apps to run `webapp` in development.
Install all [SCIONLab apps](https://github.com/netsec-ethz/scion-apps) and dependancies, including `webapp`:
42
+
### Development Build
43
+
Install all [SCIONLab apps](https://github.com/netsec-ethz/scion-apps) and dependencies, including `webapp`:
18
44
```shell
19
45
cd scion-apps
20
46
./deps.sh
21
47
make install
22
48
```
23
49
24
-
### Run
25
-
!!! warning
26
-
If the old [scion-viz](https://github.com/netsec-ethz/scion-viz) web server is running on your SCIONLab VM, port 8000 may still be in use. To remedy this, before `vagrant up`, make sure to edit your `vagrantfile` to provision an alternate port for the `webapp` web server. Add this line for a different port, say 8080 (for example, just choose any forwarding port not already in use by vagrant, and use that port everywhere below):
50
+
### Development Run
51
+
You can alter the defaults on the command line, all of which are listed below:
0 commit comments