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.
WebRTC was first introduced in 2011 by google, and it has grown in...
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...
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.
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...
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.
1
2
rails new action-text-demo -d postgresql
rails g scaffold Blog
Install action text into your app
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...
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...
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...
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...
Rails 4.2+ has introduced an environment variable in production ENV['RAILS_SERVE_STATIC_FILES']
which disallows
serving static files and assets by default.
1
2
3
# 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...