Merge pull request #67 from davideast/jsqs2

Add directions for getting and running an HTTP server
This commit is contained in:
Kathy Walrath 2015-03-04 22:48:47 -08:00
commit 9934ca3b51
1 changed files with 15 additions and 1 deletions

View File

@ -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