Update to Node webserver

This commit is contained in:
David Walsh
2019-05-06 21:50:19 -04:00
parent 5f1aaa0bbe
commit 03ccc8b2e3
2 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
# Aescape Lab UI
## To install
```
sudo apt install npm -y
sudo npm install http-server -g
sudo ln -s /usr/bin/nodejs /usr/bin/node
```
## To run
Set your master to be what you want - default is `phoebe`.
Then run

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash
cd $(rospack find aescape_lab_ui)
python3 -m http.server 8000
# python3 -m http.server 8000
# Node webserver: https://www.npmjs.com/package/http-server
http-server -p 8000