Introduction to WebRTC with sockets

WebRTC is... well, everywhere. WebRTC (Web Real-Time Communication) is a technology that enables Web browsers to stream audio or video media and communicates relevant data across browsers, mobile platforms, and IoT devices without the need for an intermediary such as a server.

video calling app

WebRTC was first introduced in 2011 by google, and it has grown in...

Read More

Optimise your React.js Application

When building any React application developers often miss out taking into consideration the performance aspect of the application. An efficiently running application is vital for shipping an application which is bug free, light weight, resourceful and which posses great user experience. In this article we will discuss about the tools that...

Read More

Improve your React.js SEO with NextJS

In React everything is rendered on the client-side, this is great for UX, but when the web-crawlers tries to crawl your site, it wouldn't find any content on the DOM. This is bad in terms of SEO because crawlers cannot process the API response and wouldn't wait for DOM re-render.

Table of contents

  1. How browsers, crawlers and social media platforms...
Read More

What is Tauri?

Tauri is a Rust framework for creating cross-platform desktop applications using any HTML and JavaScript. Desktop apps can be developed using front-end framework (Such as React, Vue.js, Angular, Svelte). The build created using Tauri is much smaller, faster and secure. Tauri uses default system webview technology to create smaller...

Read More

Action Text - Handling file attachments (Audio / Video / PDF) in Rails 6

Action Text is a very powerful rails feature which uses Trix editor from basecamp under the hood, In this article we will understand how to use ActionText to work with different media format.

Let's create a new Blog Application for this demo.

rails new action-text-demo -d postgresql
rails g scaffold Blog

Install action text into your app

Read More

How to write single line functions in ruby

Ruby provides several ways using which one can write one line functions. However, over the years, having done several code reviews, I've seen this feature seldom used. In this article, we will go through various way of writing single-line functions.

One line functions as the name imply is a short function which takes 1 LOC. Because they are short...

Read More

Active Record delegated type

Rails 6 has added a new feature that adds delegated_type to Active Record. In this blog post, we are going to learn how to use delegated_type in our Active Record model using a real-life project and also discuss the benefits of using it.


Implement a School Management System. The system will have Users with different profiles. eg: Student...

Read More

How to setup Openresty/Nginx to auto generate SSL certificates for all your registered domains/subdomains

Generating SSL certificates using Let's Encrypt and Certbot has long been the norm. It is often used as a default choice when it comes to generating SSL certificates. Certbot makes it intuitive and seamless to generate SSL certificates for any site we wish.

What if we wanted to generate SSL certificates on the fly, entirely automating the...

Read More

10 Rails Antipatterns to avoid - Writing well reasoned code

Ruby on rails certainly makes it easier for developers to bootstrap applications and POCs at a pace which is hard to imagine achieving using any other framework. The MVC architecture of the framework ties up together many pathways which speeds things up in terms of development speed. And as a consequence, it brings along with a few antipatterns...

Read More


Rails 4.2+ has introduced an environment variable in production ENV['RAILS_SERVE_STATIC_FILES'] which disallows serving static files and assets by default.

# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present...
Read More