NodeJs Application Structure

In this post I will show how I organize my node.js applications. I’ll start explaning the nodejs principles, with examples.

NodeJs Principles

NodeJs follows the next principles:

Unix philosophy

  • “Small is beautiful”
  • “Make each program do one thing well”

Keep It Simple, Stupid (KISS) principle.

“Simplicity is the ultimate sophistication.” – Leonardo da Vinci

I think I already gave the idea of the way to structuring a node application. Creating microservices to do specific work, separating the complexity and decoupling the responsibilities.

One of the biggest problems that people have with Nodejs is the maintainability of the application. That’s the reason why is better to have 3 different micro applications than a big one.

Continue reading NodeJs Application Structure

Cordova + Ionic + Typescript

In this post I’m gonna talk about Cordova and its integration with Visual Studio. For this I created a simple bootstrap project using Cordova, Ionic and Typescript for people that are starting this adventure like me.

What is Apache Cordova?

Cordova it’s a open source platform to develop mobile applications with Web Technologies (Javascript, Html5, CSS). It’s possible to install plugins to access the device native api. For example, if we want to access the camera, we just need to install the camera plugin.

Continue reading Cordova + Ionic + Typescript

DDD – Domain Driven Development

One of the new challenges I faced at my new job was understanding and adapting to DDD. It can be a bit confusing at first, but as soon as I made sense of it, I couldn’t not recommend it.

In this post i want to explain the basic concept of DDD.

What is DDD?

DDD consists in one domain project that doesn’t depend on anything, while the other projects depend on it. Usually, the domain project contains interfaces, domain entities and utility classes that don’t depend on third parties. Confusing? I’ll explain better in the example below.

Continue reading DDD – Domain Driven Development

Jenkins + NodeJs

In this post i will explain how to integrate Jenkins with Nodejs.
Why Jenkis? Because it’s the most popular CI.

What is Jenkins?

Jenkins is a continuous integration application. The main features are:

  • Building/testing software projects continuously
  • Monitoring executions of externally-run jobs

More information here.


  • Easy to learn
  • Open Source
  • Good Documentation & Tutorials
  • Plugins for everything


  • 404: Not Found

Continue reading Jenkins + NodeJs

NodeJs Tips

I started developing in Node Js 8 months ago and at the beginning I wish to know everything that I know today. With this post I want to share some tips and good practices that I learned.

Use Strict

“use strict” was introduced in Javascript 5, you should use it when you are writing javascript code in Client (Browser) or Server Side (NodeJs) ALWAYS!!! To change the compiler to strict mode it’s only necessary to write “use strict”; and the compiler will automatically change to strict mode.

Continue reading NodeJs Tips

ASP.NET MVC Tricks (Remote Validation)

The necessity of validation a field in a form using AJAX it’s really common. Sometimes it can give a little work but the ASP.NET NET 3/4 has one attribute to help us for this kind of work.

Here is a simple demonstration of how to check if a username already exists in the system. Because the username should be unique.

Continue reading ASP.NET MVC Tricks (Remote Validation)

reCaptcha + Asp.Net MVC 3/4

What is reCaptcha ?

reCaptcha, it’s an anti-bot service, in other words checks if it was a human or a bot submitting a form. But it also has another utility, when we are using this service we are helping on digitize of books.

Here is an explanation of how it works. (Link)

If you want to learn more about this you should spend 15 mins of your day, watching this Ted Talk.

Continue reading reCaptcha + Asp.Net MVC 3/4

Moq Framework

What is Moq FrameWork?

Moq is one mocking library for .NET developers to simulate objects that pretend the behavior of real objects. A programmer generally creates a mock object to test the behavior of some other object. This framework is the only one who takes full advantage of .NET plataform (ex: Linq, Expression Trees) and C# features (ex: Lambda Expressions) that make it the most productive.

Moq supports mocking interfaces, classes(the classes can’t be sealed) and you cannot mock static methods.

Continue reading Moq Framework