Class06 Answer:

Start mljs webserver

I issued some shell commands:

cd ~ann/mljs/
npm i
./http.bash

I saw this:


ann@ub16jul:~$ cd ~ann/mljs/
ann@ub16jul:~/mljs$ 
ann@ub16jul:~/mljs$ which npm
/home/ann/node/bin/npm
ann@ub16jul:~/mljs$ which node
/home/ann/node/bin/node
ann@ub16jul:~/mljs$ 
ann@ub16jul:~/mljs$ npm i
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN mljs@1.0.0 No repository field.

added 21 packages in 1.514s
ann@ub16jul:~/mljs$ 
ann@ub16jul:~/mljs$ 
ann@ub16jul:~/mljs$ ./http.bash 
Starting up http-server, serving ./
Available on:
  http:127.0.0.1:8080
  http:10.0.2.15:8080
Hit CTRL-C to stop the server

I browsed the URL: http://localhost:8080

I saw this:

Class06 Lab


ml4.us About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen