posts found in this keyword

    development series

    Hello World command line

    Hello World command line

    By Allan

    Node.js can be used to create command line utilities. The example below reads the first argument from the command line and prints a Hello message. To run this code on a Unix System: 1. Create a new file and paste the code below. The filename is irrelevant. 2. Make

    Hello World HTTP server

    Hello World HTTP server

    By Allan

    First, ensure that you have Node.js installed on your platform. We use https://nvm.sh In this example, we'll create an HTTP server listening on port 1337, which sends Hello, World! to the browser. Note that instead of using port 1337, you can use any port of