Add directions for getting and running an HTTP server
This commit is contained in:
parent
1f978a7927
commit
6de6a3ae2d
|
@ -259,7 +259,21 @@ p.
|
|||
|
||||
h2#section-load-component-module 8. Run a local server
|
||||
|
||||
// PENDING: add directions (or at least hints) here
|
||||
p Run a local HTTP server, and view <code>index.html</code>.
|
||||
|
||||
p.
|
||||
If you don't already have an HTTP server,
|
||||
you can install one using <code>npm install -g http-server</code>.
|
||||
(If that results in an access error, then you might need to use
|
||||
<code><b>sudo</b> npm ...</code>)
|
||||
For example:
|
||||
|
||||
pre.prettyprint.code.
|
||||
# From the directory that contains index.html:
|
||||
npm install -g http-server # Or sudo npm install -g http-server
|
||||
http-server # Creates a server at localhost:8080
|
||||
# In a browser, visit localhost:8080/index.html
|
||||
|
||||
|
||||
// WHAT'S NEXT... ##########################
|
||||
.l-main-section
|
||||
|
|
Loading…
Reference in New Issue