An open API service indexing awesome lists of open source software.

https://github.com/macagua/nodejs-helloworld

A Node.js Hello World Demo
https://github.com/macagua/nodejs-helloworld

hello-world helloworld helloworld-programs node-js nodejs

Last synced: 12 days ago
JSON representation

A Node.js Hello World Demo

Awesome Lists containing this project

README

          

=================
nodejs-helloworld
=================

A Node.js '`Hello World `_' program example.

Installation
============

You need install the pre-requirements for run this Hello World example.

Update repositories of available packages to install, with
the following command:

::

$ sudo apt update

Install necessary minimum dependencies, with the following command:

::

$ sudo apt install curl software-properties-common gcc g++ make
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
$ sudo apt install -y nodejs

Run application
===============

You can run Hello World Demo, with the following command:

::

$ nodejs ./http_server.js

Then, you can open the URL http://127.0.0.1:3000/ in your web browser and you can
see the hello world example like this:

.. figure:: https://github.com/macagua/nodejs-helloworld/raw/master/docs/nodejs_helloword.png
:width: 447px
:align: center
:alt: A Node.js 'Hello World' program example

A Node.js 'Hello World' program example

Reference
=========

- `Step 4. Create Demo Web Server (Optional) - How to Install Latest Nodejs & NPM on Debian 9/8/7 `_.