Assignments Node III

Handing In Assignments

You must hand in by using git

Hand In by git

  • Create an empty repo on bitbucket.org, gitlab.com, or github.com,
  • git push your local repo to the above remote repo.
  • For node assignments please put the line(s)

    node_modules/

    into your .gitignore file.

Send a mail to with:

  • The word 'handin <subjectname>' in the subject line of your mail
  • The url of your repo(s).

Assignment Node III.0

Today you have seen servers presenting HTML5 pages to users. Now with your own version of the server from Example 17.13 make your server capable of serving a about.html with a bit of css and perhaps an image.

Assignment Node III.1

Today you have seen servers presenting HTML5 pages to users. Now with your own version of the server from Example 17.13 make your server capable of serving a contact.html page with a url of /contact and the method GET. The contact page must have an HTML5 form with a topic, some content, a name, and an email address. The form must be submitting with method="post" action="/contact".

Assignment Node III.2

The contact form that was requested from sserver by the url /contact with the method GET will send its filled in form to the same url, /contact but with the method POST. Try to find a way to differentiate between what is done when the url is the same but the methods are different. This means in other words that the combination POST, /contact must be treated differently from the combination GET, /contact In this case the posted data must be handled so that the user will receive a message receipt quoting the entered data. Write and test that handler and the receipt.