How to Quick-Start With Node.js As Web Server on openSUSE Gnu/Linux

May 19, 2015 | By the+gnu+linux+evangelist.

Node.js Web Server Quick Start for openSUSE

You are Welcome! The Tutorial shows you Step-by-Step How to Install and Getting-Started with Node.js as Html Web Server on openSUSE 11.x/12.x/13.x/42.x-Leap/15.x-Leap i686/x8664 GNU+Linux Desktop.

Node.js is an Amazing New Javascript Stuff that is at the Same Time either a Web Server and a Web Development Framework.

Node.js is Well Known for his Performances and Scaling Attitudes derived from a Single Thread Non-Blocking Architecture “First, come, first served”.

Node.js Quick Start on openSUSE - Featured
  1. Open a Shell Terminal Emulator Window
    (Press “Enter” to Execute Commands)

    Linux openSUSE Node.js Web Server Quick Start - Open Terminal
  2. How to Install the Latest Node.js on openSUSE Linux

    Node.js Installation for openSUSE
  3. Installing Needed Node.js Modules.

    sudo npm install content serve-static
  4. Making Node.js Web Server Directories

    mkdir -p ~/Documents/node.js/webserver/static
  5. Making Node.js Web Server Script.

    cd ~/Documents/node.js/webserver
    nano web server.js

    Append something like:

    var connect = require('connect');
    var serveStatic = require('serve-static');
    var app = connect();

    Ctrl+x to Save & Exit from nano Editor ;)

  6. Running the Local Web Server.

    node web server.js
  7. Creating a Hello World Node.js Html.

    nano ./static/hello.html

    Insert some Html content like:

    <!DOCTYPE html>
    <title>Hello-World from Node.js</title>
    Hello World from a Node.js Web Server!
  8. Open Html Page on Browser
    Point to:


    You should be Happily Greeted with an: “Hello World from a Node.js Web Server!”

QuickChic Theme • Powered by WordPress