Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 2 included. #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

amirjamil90
Copy link

Chapter 2 programs included which deals with routing principles and simple server program.

// making a node server which will listen at port 3000
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text/plain'}); //content type is text plain which refers to plain text
res.end('hello world');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 5 & 6 should be indented.

@@ -0,0 +1,24 @@
/* Example-1 */
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these both example 1 in the book? I don't have it in front of me, but that seems unlikely. I didn't intend to include all of the tiny examples in the repo, but I don't have a particular objection to it, either. Maybe the files should be named according to the correct example number? Like example-2.1.js, etc? Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants