Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 722 Bytes

node-js.md

File metadata and controls

13 lines (10 loc) · 722 Bytes

Node JS Assignment Set

  1. Create a simple Node Server Using ExpressJs on Port 8000

    • Server should send a "hello" message when called by localhost:8000/
  2. Create 3 APIs/Endpoints on Server with path "/home","/person","/country"

    • /home should return you a JSON saying "Hello World"
    • /person should return you an error like "unauthenticated"
    • Create a Simple HTML form to submit use country.
    • /country should return you complete data of the country name you have posted (i.e. you will send ISO code of Country with request)
  3. Use Express Session to create an API to track how many time you have visited the Page.

  4. Use Express Session to track how many unique visitors are the on your site.