Assignments Node XI

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 XI.0

Take the code from todays lesson and implement it. You will get it with

git clone https://phidip@bitbucket.org/phidip/assa0.git
  • Change it so that countries are displayed in a better way than just as names in a drop down.
  • Complete the project so that you may display cities of a chosen country.
  • When selecting a city, get it's weather at
    http://api.openweathermap.org/data/2.5/weather?q=Kolding,dk&appid=818105d2f232ae11a90fe3f295d523cc
    and display it with the city data.

    The q=Kolding,dk should be exchanged for the selected city, and its code2 countrycode.

The appid displayed above is mine. You should get your own, it is free, and they do NOT spam you with mails. Find the service on their site and use it.

Assignment Node XI.1

While in class get the IP-address of one of your classmates or your teacher. Assuming that the IP address is 11.22.33.44, write an HTML5 page that accesses that IP with the url http://11.22.33.44/countries/Denmark using AJaX. The HTML5 page must then display the received data.

The prerequisite of course, is that the code from todays lesson has been implemented, and that the service is up and running.