How to GET and POST in node.js

3836 Runs 10926 Views 1523 Copies
Saved

Saved

sundip 66

sundip
published a year ago

    
      
      

    How to GET and POST in node.js

    A code example that illustrates how to handle the GET and POST methods in node.js when using the HTTP server.

    Project contents

    • server.js - contains the node.js code used to retrieve and display the first 5 friends from Twitter

    • index.html - html and css that gets served when a GET request is sent to the server

    • package.json - holds various metadata relevant to the project such as identifying dependencies

    Terminal

    Your session has timed out.

    Dismiss (the page may not function properly).