Nodejs

Microservices with Docker, Alpine Linux, Nodejs, Nginx on Win10 Host

Apology for the last word “Win10”, it’s bit misleading but my main development machine is Dell XPS 13 on Windows 10 Pro Insider Preview. There’s should be a follow up to this blog hopefully on my headless Ubuntu Server. BTW, it’s a PITA to get this thing working on my Win10 machine - too many wrangling with Windows GUI DNS settings, Docker vEthernet adapter then a mixed of CLI scripts, some won’t work on plain CLI commands later then I discovered that wrapping it inside docker-compose.
Read more

No Fuss, NodeJS LTS installation on Raspbian Lite Jessie

Copy & Paste, trust me! $> sudo apt-get update $> sudo apt-get upgrade $> sudo apt-get -y install git $> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash $> source ~/.bashrc $> nvm install --lts as of this writing my NodeJS LTS version: v6.10.0 What’s The Fuss? Node Version Manager (nvm) gets installed, we’ll then use it to install whatever is the current NodeJS LTS - primarily behind the scenes, it will spear you from crap of load of these commands:
Read more

NodeJS + Cron: A series of attempts in getting rid of dangling processes

Short-lived scripts that sucked your resources for 1mins or at most 5mins - is probably fine. However, if it is recurring jobs in Cron and involves several tasks and at least an hour of processing - that’d be a different story. I was working on a simple NodeJS-based cron script with only 3 requirements: extract transform load Each one of these however would involve crunching through a million rows of data.
Read more

NodeJS Development Inside Docker on Windows 10

Wait, what ? Moving to Windows10 (6 months ago as of this writing) as my main OS is a bit hard, just a little bit. I use commandline ALL THE TIME and I can’t live without the developer’s Swiss army knife on my side - tiny tools that make our life easier: grep, sed, ps, tree, ssh, find … “Bash On Windows” was a good strategy from Microsoft - I didn’t bother about switching to Windows and I didn’t think twice, I was more worried about which machine to buy.
Read more

Windows Insider Build 15031 Broke my NVM NodeJS environment

Yesterday 10th of Feb 2017, I managed to update my PC with the latest Windows 10 Insider Preview Build 15031. The list contains a massive set of features as well as fixes, so I didn’t mind the upgrade. It took at least 20mins to get it done. Once done, my NodeJS environment started complaining, btw I am using Node Version Manager. Here’s what I got when switching NodeJS versions:
Read more