Node.js

From 太極
Revision as of 13:55, 11 October 2013 by Brb (talk | contribs) (Created page with "= node.js prompt = == How to exit == <pre> .exit </pre> = http server = <pre> # Terminal 1 node web-server.js # Terminal 2 curl http://localhost:8000 OR use "-i" to include HTT…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

node.js prompt

How to exit

.exit

http server

# Terminal 1
node web-server.js

# Terminal 2
curl http://localhost:8000
OR use "-i" to include HTTP-header in the output
curl -i http://localhost:8000