by
57 8
2
5
2,373
0
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 8145th place

Published on:

No tags for this snippet yet.
Languagejavascript
LicenseMIT_X11

Simple NodeJS Server

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/213283/Simple-NodeJS-Server?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
var http = require('http'); var s = http.createServer(function(req, res){ res.writeHead(200, {"Content-Type":"text/plain"}); res.write('Hello, Snip2Code!'); }); s.listen(3000, function(){ console.log("App run on 3000..."); });
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus