Building a scalable backend service with Node.js, TypeScript, PostgreSQL and Docker

Introduction I built a Nodejs project over the weekend. Just thought I’d share and guide others with the design and build process of a scalable backend service with Node.js, TypeScript, Nginx and Docker without using any existing Nodejs frameworks. I used the find-my-way router to implement a REST API. And for the database, I’m using PostgreSQL because it’s reliable and scalable relational database. The aim was to build a backend service that can handle thousands of requests per second without any performance degradation....

April 20, 2022 · 6 min · Hemant Kumar

Running a Forever Free Wordpress Blog with Your Own Domain on Google Cloud

Running a WordPress blog on a VPS (Virtual Private Server) can be expensive, especially when you have just begun writing or in case it’s just a personal travel blog which gets a few hundred visitors per week. The minimum for which you can get a dedicated server hosting is for at least 5$ a month, which might not be a lot for you, but might be worth a lot to someone else....

June 15, 2020 · 9 min · Hemant Kumar

Create Your Own Minecraft PE Server for Free

You’ve just purchased Minecraft Pocket Edition and now you want to play it with your friends. You’ve checked out realms but you’re not ready to shell out ~ 10$ per month for a realm. The better alternative to Minecraft PE Realms is having your own Minecraft PE Server. A server will give you more flexibility and features in terms of customizability to realms and you can invite your entire group of friends or strangers to join the server and have fun together....

April 25, 2022 · 7 min · Hemant Kumar

Access 'GeForce Now' in India

The cloud Game Streaming sector is heating up in India. Nvidia recently jumped into the fray with the launch of its own game service called the GeForce Now. The chipmaker has opened its cloud-based game streaming service, which is set to take over Google Stadia in North America and Europe, to memberships. However the GeForce Now in India is still a long way away from becoming a reality. Currently the GeForce Now service is only open to users across Europe and North America....

September 11, 2020 · 6 min · Hemant Kumar

Azure AD integration as an IDP with AWS Cognito

Amazon Cognito provides authentication, authorization, and user management for your web and mobile apps. Your users can sign in directly with a user name and password, or through a third party such as Facebook, Amazon, or Google. The two main components of Amazon Cognito are user pools and identity pools. User pools are user directories that provide sign-up and sign-in options for your app users. Identity pools enable you to grant your users access to other AWS services....

July 17, 2020 · 5 min · Hemant Kumar

sshuttle - VPN over ssh, a free alternative

Looking for a lightweight VPN client, but are not ready to spend a monthly recurring amount on a VPN? VPNs can be expensive depending upon the quality of service and amount of privacy you want. A good VPN plan can easily set you back by 10$ a month and even that doesn’t guarantee your privacy. There is no way to be sure whether the VPN is storing your confidential information and traffic logs or not....

April 22, 2020 · 5 min · Hemant Kumar

Monitoring Temperature and Humidity Using InfluxDb and Grafana on RaspberryPi

How fun would it be if you were able to monitor the real time temperature and humidity of your home or work location? In this tutorial we’re going to do just that. First of all, we’re going to setup a Raspberry Pi equipped with a DHT-22 Temperature and Humidity sensor to capture real time readings. Then we’re going to push these captured metrics to InfluxDb – a time series database. Finally, we’re going to set up Grafana on our Raspberry Pi to create real time graphs of the temperature and humidity fluctuations....

November 24, 2019 · 8 min · Hemant Kumar

Raspberry Pi 3 Setup Without a Monitor, Keyboard or a Mouse

In this tutorial, I’m going to explain how to set up your Raspberry Pi 3 without using a monitor or any other input-output devices. The setup is divided into 5 simple steps. Follow the steps to setup your Raspberry Pi in a headless mode, i.e without a keyboard, mouse or even a display. This is especially helpful if you’ve just got your Raspberry Pi and you don’t have anything else than just a power cable and a SD-Card....

September 23, 2019 · 6 min · Hemant Kumar

6 Common Linux Commands for System Monitoring

When it comes to working with unix systems monitoring them plays a very significant role. Whether it’s monitoring the resource utilisation or network utilisation, you need to figure out what the system is actually doing. In this article I’ve aggregated a list of the most common linux commands used for monitoring the current state of the system. On a system with GUI, you can achieve this using a Task Manager or Activity Monitor....

July 21, 2019 · 7 min · Hemant Kumar

Basic Linux Commands for File Manipulation and Compression

When you work with linux or any unix based operating system, everything is treated as a file. Be it the directories, source code files, binaries, or anything else, everything is stored as a file in linux. You can trying opening  a directory in vim (using the command vim office_work_directory) to see what happens. I would recommend against directly editing a directory file though. It’s just fun to see what is actually stored in a directory file....

April 20, 2019 · 12 min · Hemant Kumar