Install any version of NodeJS and npm on Raspberry Pi

Wojtek on nodejs, Raspberry Pi, npm, Linux · · Comments · 1 min read

Or simply put, easily switch between versions of NodeJS on any Linux based system. There are two most popular Node version managers. One, my personal favourite is n package, the other one is nvm. n For me the easiest way is to use n package. Just install whatever Node version your official distribution ships with. sudo yum install nodejs or,... Read more »

Create NodeJS command line script or app

Wojtek on nodejs, shell, JavaScript, script · · Comments · 1 min read

I wanted to write a simple script that would convert multiple files from one encoding to another. I didn't want anything big or running in the browser. Command line script seemed like the right approach. Coming from a web developer background my first thought was a script written in PHP and converted to a command line app. Just saying that... Read more »

Add reCAPTCHA to NodeJS and ExpressJS app with AJAX form

Wojtek on reCAPTCHA, nodejs, expressjs, Google · · Comments · 3 min read

Google's reCAPTCHA is great for getting rid of those pesky bots spamming your contact forms. Implementing reCAPTCHA on your site is very easy, albeit somewhat confusing if you try to follow official documentation. Below example assumes you're using NodeJS with ExpressJS for back-end and Pug (formerly Jade) templating engine on the front-end. General principle is the same regardless of languages... Read more »