Merge pull request #67 from davideast/jsqs2
Add directions for getting and running an HTTP server
This commit is contained in:
commit
9934ca3b51
|
@ -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