Luis Matute

NodeJS Coldfusion Benchmark

NodeJS vs. Coldfusion Benchmark

I started out as a front-end developer, my main skills lies in javascript. It was an obvious step for me to get involved with NodeJS, and I have loved every bit of it. On the other hand, at my day job, we use CFML to power our backend logic. So I decided to make some tests between how well does CFML performs against NodeJS and how do they compare. I prepared a couple of simple examples that goes from making a simple 'hello world' to querying a mysql db and displaying the results. The tests were done on a Digital…

Read More

Luis Matute

NodeJS CLI

CLI-ate with NodeJS

I've always read about how easy it was to create a Command Line Utilities with node, but I never thought it was this easy... I'm doing this post(as always) for self documentation. In this post, I'm documenting the steps I follow in the creation of a Command Line Interface tool using NodeJS. This is useful because we can take advantage of how NodeJS can handle the filesystem, system status, command line interface, among others... We can encapsulate scripts to execute them as applications, create scripts for tasks automation and so on. 3 steps: We need to create a normal…

Read More

Luis Matute

GruntJS SASS Javascript

Letting GruntJS run the show

Today I'm going to show you how to create a basic gruntjs setup. If you don't know what grunt is, I'd recommend you head over to the GruntJS site to catch up. In a nutshell, grunt is a task runner for javascript, this means that it can take any repetitive task the we do as developers, and automates it. We can compile SASS/LESS/Stylus or any css preprocessor language we use, minify HTML/JS/CSS, create sprites, optimize images, run tests...(u get the point). First of all, be sure to have a package.json. If you don't have…

Read More

Luis Matute

NodeJS Git Github Bash

Webhooks for Auto Deployments in NodeJS

Since I mostly use git for my projects, in my servers, I clone a copy of the project's repo, so that I don't have to FTP files in order to deply. So I'm going to show how to auto deploy the project. Whenever a commit gets pushed to the repo, a POST request will be made to our web server, a git pull will be done on the server via a shell script which will be executed with NodeJS. Note: For this to automatically update a NodeJS app, nodemon, supervirsor or a module/script that watches for code changes, must…

Read More

Luis Matute

NodeJS NGINX MongoDB Git CentOS

NodeJS, NGINX, MongoDB and Git Installation on CentOS 6.4

First of all, I'm gonna start by saying that I am not a linux pro, so bare with me if something here is wrong and let me know in a comment. This is just the way I do the setup for my NodeJS server, which will need access to github(since I want the app to auto pull from github whenever I push something from my dev), NGINX to handle the static content, MongoDB, and a couple other things I use. Here is a link to my shell script that will do the whole setup automatically (you're gonna have to…

Read More