$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Quick-Start With Node.js Html WebServer on Linux Mint 17.1 Rebecca 32-64bit GNU

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

Node.js WebServer Quick Start for Mint Linux

Hi! The Tutorial shows you Step-by-Step How to Getting-Started with Node.js Html Static WebServer on Linux Mint 17.1 Rebecca i386/amd64 GNU Desktop/Server.

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 Linux Mint 17.1 Rebecca - Featured
  1. Open a Shell Terminal Emulator Window
    (Press “Enter” to Execute Commands)

    Linux Mint Node.js WebServer Quick Start - Featured
  2. How to Install the Latest Node.js on Mint Linux

    Here Node.js Installation for Mint
    How to Install the Latest Node.js Framework and WebServer on Linux Mint
  3. Installing Needed Node.js Modules.

    Copy
    sudo npm install content serve-static
  4. Making Node.js WebServer Directories
    Example:

    Copy
    mkdir -p ~/Documents/node.js/webserver/static
  5. Making Node.js WebServer Script.

    Copy
    cd ~/Documents/node.js/webserver
    Copy
    nano webserver.js

    Append something like:

    Copy
    var connect = require('connect');
    var serveStatic = require('serve-static');
    
    var app = connect();/napp.use(serveStatic("./static"));/napp.listen(5080);
    

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

  6. Running the Local WebServer.

    Copy
    node webserver.js
  7. Creating a Hello World Node.js Html.

    Copy
    nano ./static/hello.html

    Insert some Html content like:

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

    Copy
    http://localhost:5080/hello.html

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