Speed up development with full-stack environments for every branch.

Learn More

How to GET and POST in node.js

8002 Runs 41814 Views 8750 Copies


sundip 66

published 4 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

    Please login/signup to get access to the terminal.

    Your session has timed out.

    Dismiss (the page may not function properly).