Hello World command line

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: Create a new file and paste the code below. The filename is irrelevant. Make this file executable with chmod +x FILE_NAME Run the app with ./APP_NAME Dragon On Windows, you do step 1 and run it with node APP_NAME Dragon ...

December 4, 2022 · 2 min

Hello World HTTP server

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 your choice which is currently not in use by any other service. Typical ports used by developers are 1337, 3000, 5000, 8080 The HTTP module is a Node.js core module (a module included in Node.js’s source that does not require installing additional resources). The HTTP module provides the functionality to create an HTTP server using the http.createServer() method. To create the application, create a file containing the following JavaScript code. ...

December 4, 2022 · 2 min

How To Setup Your Local Node.js Development Environment Using Docker

April 9, 2022 · 0 min

Git fork vs. clone: What's the difference?

Both Git fork and clone create copies of a repository, but they offer drastically different access levels, isolation and control over the target repo. The critical difference between Git clone and fork is how much control and independence you want over the codebase once you’ve copied it.

April 9, 2022 · 3 min

forking (software fork)

Forking is to take the source code from an open-source software program and develop an entirely new program.

April 9, 2022 · 1 min

The development series

The development series aims to bring you language-specific getting started guides to walk you through the process of setting up your development environment and start containerising language-specific applications using Docker. The learning modules contain best practices and guidelines that explain how to create a new Dockerfile for your preferred language, what to include in the Docker image, how to develop and run your Docker image, set up a CI/CD pipeline, and finally provides information on how to push the application you’ve developed to the cloud. ...

March 24, 2022 · 1 min

Nodejs

What will you learn in this module? The Node.js getting started guide teaches you how to create a containerized Node.js application using Docker. In this guide, you’ll learn how to: Create a simple Node.js application Create a new Dockerfile which contains instructions required to build a Node.js image Run the newly built image as a container Set up a local development environment to connect a database to the container Use Docker Compose to run the Node.js application Configure a CI/CD pipeline for your application using GitHub Actions. After completing the Node.js getting started modules, you should be able to containerize your own Node.js application based on the examples and instructions provided in this guide. ...

March 24, 2022 · 1 min