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
- Host: GitHub
- URL: https://github.com/macagua/nodejs-helloworld
- Owner: macagua
- License: gpl-3.0
- Created: 2017-08-23T23:27:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T16:42:15.000Z (over 6 years ago)
- Last Synced: 2025-04-28T02:37:05.519Z (12 months ago)
- Topics: hello-world, helloworld, helloworld-programs, node-js, nodejs
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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 `_.