Skip to content
Snippets Groups Projects
Commit b19ac3fc authored by Stefan Dierauf's avatar Stefan Dierauf
Browse files

I think it's done

parent f8deed1f
No related branches found
No related tags found
No related merge requests found
File moved
## It's server-side javascript!
*You can do bad things*
```javascript
var http = require('http');
var sys = require('sys');
var spawn = require('child_process').spawn;
http.createServer(function (req, res) {
var ls = spawn('ls', ['-lh', '/']);
ls.stdout.on('data', function(data) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end(data.toString('ascii'));
})
}).listen(3555, '127.0.0.1');
```
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
"the-javascript-part.md", "the-javascript-part.md",
"event-loop.md", "event-loop.md",
"simple-server-example.md", "simple-server-example.md",
"its-serverside-javascript.md",
"popular-modules.md", "popular-modules.md",
"other-crazy-things-you-can-do.md", "other-crazy-things-you-can-do.md",
"takeaways.md", "takeaways.md",
"simple-chat-server.md" "simple-chat-server.md"
] ]
\ No newline at end of file
...@@ -5,6 +5,6 @@ Nodejs... ...@@ -5,6 +5,6 @@ Nodejs...
* is fast and simple * is fast and simple
* lets the OS worry about concurrency * lets the OS worry about concurrency
* uses a popular language * uses a popular language
* has plenty of support + good docs * has plenty of support + ""good"" docs
* isn't php * isn't php
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment