24.4. Assignments Node XI

Submission
You must submit assignments using git
Create Repo
  • 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 the line node_modules/must be in your .gitignore file.
Submit
By email to with:
  • The word 'submission <subjectname>' in the subject line
  • The url(s) of your repo(s) in the body

24.4.1. Assignment Node XI.0

Create an application in Express that has two main areas.

  • A user page that may request world data[18] from an API, a web service. As a minimum you should be able to display continents, the countries of a continent, cities of those countries, and, at the most detailed level, info about a particular city.
    • As an extra you may look up city weather data at openweathermap.org/api, and add them to you display of the city. This is using two APIs, that and your own.
  • An API capable of supplying world data upon request, and delivering them as JSON responses to the requestor.

24.4.2. 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 assignment above has been solved, and that the service is up and running.

This essentially means testing each other's APIs.



[18] World data means data from our test database about the World.