How to GET and POST in node.js

5712 Runs 24386 Views 4375 Copies


sundip 66

published 2 years 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


    Your session has timed out.

    Dismiss (the page may not function properly).