Linux Ubuntu Express.js Web Apps Development Quick-Start Guide

January 17th, 2014 by thelinuxevangelist

Ubuntu Express.js Web Apps Quick-Start Guide




The Tutorial Shows You How-to Quick-Start with Express.js Web App Hello-World on Ubuntu Linux Desktop.

Express.js is a Node.js Web Framework with these Main Features:

  • Minimal: Out of the Box, it supports only the very Basic Features.
  • Extensible: by Pluggables Express middlewares and Node modules.
  • Powerful: Anything you can do with Node, you Can Do with Express too.

To the Express.js Web App Quick-Start on Ubuntu Linux Top Link to Install Express.js Web Framework on Ubuntu.

Ubuntu Express.js Web App Quick-Start Guide - Featured
  1. How-to Install Express.js on Ubuntu Linux:

    Ubuntu Installing Express.js
  2. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Ctrl+Alt+t

    Ubuntu Express.js Web App Quick-Start - Open Terminal
  3. Create Express.js Hello-World App:

    nano hello-world.js

    Inserts:

    var http = require('http');
    var express = require('express');
    var app = express();
    app.get('/', function(req, res) {
     res.send('Hello World!');
    });
    
    http.createServer(app).listen(3000, function(){
     console.log('Express server listening on port ' + 3000);
    });
    

    Ctrl+x to Save & Exit :)

  4. Running Express.js Server + App:

    node hello-world.js

    Show Up Express.js Hello-World on Browser:

    http://localhost:3000/

  5. Express.js Jade Views Quick-Start Guide:

    Express.js Jade Views
(Visited 2 times, 1 visits today)
Share on Tumblr

Tags: , , , , , , , , ,


Comments are disabled