Luciano Mammino

Web developer, entrepreneur, fighter, butterfly maker!

Introducing mongo-uri-builder, a Node.js module to easily create mongodb connection strings using objects

A couple of days ago I had the need to store the MongoDB connection string for a Node.js application I am currently building. Of course it was not a big deal and at first I stored it in a file. Anyway at some point I realised that I would needed to override parts of this string to change some settings in production (e.g. adding replicas and authentication settings). For this sake it would have been nice to have a way to store this configuration as a “well organised” object and then override just the…

Having fun with Node.js, Slack and Chuck Norris

I recently wrote a Slack bot in Node.js in collaboration with one of my favourite web development websites: the amazing Scotch.io . It’s a simple and funny experiment I have done in my free time to learn something new. It’s nothing special but it will add a bit of fun inside your Slack organisation… Who doesn’t want to have a bot that tells random jokes about Chuck Norris in his own Company chat room? :) The bot is available on Github ( lmammino/norrisbot ) and on NPM ( norrisbot ) and it can be…

Versioning and deploying a static website with Git, Flightplan and Nginx

Do you ever wondered how to manage the versioning and deployment process of a website? It seems to be a very interesting yet complex topic for which there are already thousands of different solutions. In a recent collaboration with Usersnap I had the pleasure to write a very detailed article for their blog that proposes a solution based on Flightplan.js , Git and Nginx . My solution is very simple, it requires very few dependencies on your system (Git and Node.js) and it has been thought to give…

6 Rules of thumb to build blazing fast web server applications

In this post I will try to highlight some of the most common principles that you have to take under consideration when you want to achieve a great level of performance while building a web application (specifically on the backend part). I believe the concepts discussed here can be applied to any language and framework even if, due to my specific experience, I will mention some examples, design patterns, conventions and tools that are mostly used in the PHP world. You can read this article in other languages…

8 invitations to try Keybase.io

Hello dear developers, today I finally got my invitation to access the private beta of Keybase.io ! 😎 🎉 For those who are not aware of this new service, Keybase.io is a website and a command line application that makes easier to adopt asymmetric cryptography to encrypt and authenticate messages. But it’s not just this, it’s also a “directory of people” , as they like to say. It’s like a social network, where everyone can easily share its public key and attach it to its social profiles (like Twitter…

Introducing flickr-set-get a command line app to download photos

I recently developed a small command line app that allows you to download an entire gallery from Flickr, it’s called and you can find it on NPM and GitHub . Why? To be honest I had myself the need to download a large set of photos (more than 400 photos) from Flickr and I didn’t wanted to do it manually. I also wasn’t able, after a quick search, to find something simple to solve this task. Given that I am currently getting into deep of Node.js this was the perfect chance to develop something practical…

Developing a web application with Lumen and MySql

Lumen is a new Php micro-framework developed by Taylor Otwell , the same author of the famous Laravel framework. I wanted to give it a try and I am here to share my experimentations. I am not an expert of Lumen (yet), but I think one of the best characteristics of this framework is that it makes really really easy to bootstrap a new project. So to prove this, we will now build a fully functional app backed by a MySql database in less than 30 minutes. Are you ready to start? A motivational quote…

Symfony, edit the Response globally using the Kernel Response event

One of the things I like most of the Symfony framework is its Http Kernel component . Not only it does offer a very straightforward abstraction to handle requests and responses in an object-oriented way but it also allows you to interact with the whole response generation process through events . This approach is very convenient and flexible and in fact the Http Kernel component is the foundation of the Symfony framework but also of several other famous frameworks (Silex, Laravel) and CMSes (Drupal…

5 lessons learned at the Bank of Ireland Accelerator

What a hell of 3 months! During the last 3 months I haven’t got a single minute to take care of this blog. I started a new adventure and moved to Ireland to attend the Bank of Ireland Accelerator Programme in Cork with my startup Sbaam . There I spent 3 incredible months with a huge amount of lessons learned about startups and entrepreneurship . I want to share with you 5 of the best quotes I heard from the mentors and explain what I learned from them. Consider this is my first “non technical” post with…

Simple echo server written in Go, dockerized!

In this post we will see how to write a (very) simple Go server app and how to put it into a Docker container and run it. Disclaimer : I’m an absolute beginner with both Go and Docker and this is just an experiment I did to start to explore this two interesting technologies. If you’ll find something weird or wrong you are very encouraged to scream at me in the comments ( Comments ), I will be extremely thankful ;) Introduction We are going to write a simple echo server in Go and then we will pack…