Skip to content

Instantly share code, notes, and snippets.

@mrfoh
Last active March 18, 2019 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrfoh/3f5c43d129d180836abc67a090e18fd3 to your computer and use it in GitHub Desktop.
Save mrfoh/3f5c43d129d180836abc67a090e18fd3 to your computer and use it in GitHub Desktop.

Levelup Academy NodeJs 102 Assignment

  • Write an HTTP server that responds with a message saying "Hello World"
  • Write an HTTP server that returns a list of cities around the world when a HTTP request is made to it with a GET method, and a path of /cities. The server should also allow you make POST request with a path /cities and a body, and respond with the details of the request; it's headers, method, url and body.

Notes

  • Write your solutions on Repl.it
  • Share the link to your repl.it workspace here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment