Category Archives: Node JS

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (5)

Posted on in Docker Environment Ext JS 6 MongoDB Node JS NoSQL

This is part V of the tutorial, and covers how the Ext JS client app can consume the server Node.js API Let the Ext JS app consume your API By now we have a working back-end with Node, and a working front-end with Sencha. Now we are ready to modify our Sencha app, so we […]

Read more »

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (4)

Posted on in Environment Node JS

This is part IV of the tutorial, and covers: Setting up CORS on Node.js Once we are done with all the tutorials, you will have a working back-end with Node.js / Express 4 and a working front-end, with Ext JS. Only there will be one problem. The client, can’t reach the JSON backend, because both […]

Read more »

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (3)

Posted on in Docker MongoDB Node JS Sencha

This is part III of the tutorial, and covers how to setup a MongoDB NoSQL database. MongoDB & Mongoose MongoDB is a cross-platform document-oriented database, also known as a NoSQL database, This is different compared to a traditional table-based relational database like MySQL. Instead, the structure are JSON-like documents with dynamic schemas (MongoDB calls the […]

Read more »

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (2)

Posted on in Docker Ext JS 6 MongoDB Node JS

This is part II of the tutorial, and covers: JavaScript on the server. Node.js: Setup the back-end with Express 4 Now that the client Sencha app is ready to be served, we need to create our server to display the Sencha app in the browser. What you see in the client folder, those are the […]

Read more »

Tutorial: Full-stack JavaScript for the Enterprise. Getting started with: Ext JS, Node.js, Express, MongoDB and Docker. (1)

Posted on in Docker Ext JS 6 JavaScript Node JS

This is part I of the tutorial, and covers: JavaScript on the client. Yeah you are correct, when you have a web project, optimized for production, you can use FTP and simple upload the folder on your server. That’s easy, and when you only have a simple HTML5/JS/CSS app, or an application with a PHP […]

Read more »

How to generate a PDF from an Ext JS app

Posted on in Environment Ext JS Ext JS 5 Ext JS 6 Node JS

Often I get the question if it’s possible to generate a PDF from a Sencha app. Well yes that’s possible, but not with Ext JS code only. Though, Ext JS has an exporter, to export grid/pivot data into an XML or Excel file, and you can export charts to images. Out of the box we […]

Read more »

Make a native build with Ext JS 5, Sencha Cmd 5 and Phonegap / Cordova with plugins.

Posted on in Cmd Cordova Ext JS Ext JS 5 Mobile Node JS Sencha

With the release of Ext JS 5; we finally have Touch experience in the framework. So yes, you can start creating tablet applications. Maybe you are now wondering, can I also package Ext JS 5 apps with Apache Cordova or Adobe Phonegap, so I can sell my app in the App Stores? Well yes, you […]

Read more »

Upgrade Node JS from the CLI

Posted on in Node JS

First check your current version of Node JS: $node -v > v0.10.18 Clear your npm cache: sudo npm cache clean -f Install Node: sudo npm install -g n Upgrade to a later version (this step can take a while) You can specify a particular version like so: sudo n 0.10.23 Or you can just tell […]

Read more »

Node Connect example

Posted on in JavaScript Node JS

The example below can be easily replaced with Node Connect. Just with a few lines. app.js var http = require('http'); var path = require('path'); var fs = require('fs'); var extensions = { ".html" : 'text/html', ".css" : 'text/css', ".js" : 'application/javascript', ".json" : 'application/javascript', ".png" : 'images/png', ".gif" : 'images/gif', ".jpg" : 'images/jpeg' } http.createServer(function(req, […]

Read more »

Hello World with Node.js

Posted on in JavaScript Node JS

See the example below for an easy Hello World example with Node.js. Create a Node.JS server and serve a hardcoded response, with content-type: ?text/html?. And listen to localhost:8000 in your browser to see the result. In your project folder create an app.js file: var http = require('http'); http.createServer(function(req, res){ var html = BoilerplateHello World"; res.writeHead(200, […]

Read more »