Uploading Files in Vue Firestore App

Firestore is a super easy way to configure your backend. Firestore provides a range of services anywhere from a database, user authentication, to using machine learning for many use-cases. One of the many things you do in a typical app is to enable users to store files. While some find it easier to store files in database (huh?), the most popular option is to store files and reference them in the database record. ...

Hide Element from Print in HTML

You have coded a beautiful page that has a few buttons, some text, a toolbar, a footer with the mandatory copyright statements, and so on. And now your users want to take the print out of the web page and ask you to include that feature. The first thing that comes to your mind is to just use the browser feature to print any web page (or to save as PDF). Well, it gets the job done but along with your beautiful, print-worthy content will be the buttons, footer, and what not. So, you get to wonder “is it possible to get rid of things only for prints but not on the web page UI”? The answer is “yes”, of course - I am writing a whole post about it. ...

Learning Golang with Fiber

I started with Golang not too long ago, and I loved the fact that I can create a web application with a couple of lines of code. But, as always frameworks help to take that web application to places. Being a practical person who develops apps for side projects and for a living, I cannot simply overstate this fact. A production application is not simply a matter of responding to a hello world JSON and frameworks take care of the routine tasks of providing structure, connecting to database, enforcing security and so on. ...

Golang vs. NodeJS for Web Apps - A Small-scale Developer View

If you had enough of single threaded behaviour of Node and are ready for the next level (/s) - I strongly recommend you evaluate Go for your next project. Javascript is the most used language in the world and that status will not change in a hurry - thanks to its frontend nature. NodeJS is super useful since we can use the same language for server and stand up a production grade server using frameworks like ExpressJS or Fastify in a matter of hours. I absolutely am in love with NodeJS - ...

Shorten URL with Express and AlpineJS

In this post let us see how we can leverage the power of Express with a sprinkling of Alpine JS to create a quick URL shortener application. But, why? Express is the most popular server-side framework and my “go to” choice for creating anything really quick. Building a front-end for Express is as easy as using handlebars (or anything really) that goes in HTML served by Express. But that lacks a “nice” user experience. ...

Migrating Wordpress Sites Across Domains

I recently had to pick up an old project on Wordpress and deploy the site on a CPanel server. So, I thought it was just the right time to document the steps needed to migrate Wordpress site from one host to the other, or from one domain to the other. While there are references to CPanel, the migration is almost the same for any control panels (or even when you don’t use one). ...

Setup Ubuntu VPS - First Few Steps

I create virtual private servers at least 8-12 times an year for client and personal projects. The steps to go live remain the same - Get a cheapo VPS on Digital Ocean, Vultr (get $100 credit), Hetzner, OVH, and friends - I end up choosing Ubuntu as the OS Secure your server Setup app server, database server and tools Stitch together various components through configuration files I have thought about switching to Docker (or Caprover) for months, but keep putting off any kind of automation. The adhoc sharing of DB servers, file systems, report/analytics servers make it a tricky exercise. I don’t quite spend more than 4 hours on a crazy day - so it’s not quite a big deal. ...

A quick start on ASP.NET Core Razor Pages

Here’s a quick introduction to Razor pages in ASP.NET core, and an opinionated way to quickly start building applications using Razor pages. And yes, there is a case for using Razor pages even in 2020. So.. ASP.net? Yes, indeed. I have had a love-hate relationship with ASP.NET through years. I am way less productive using ASP.net but cannot ignore the speed that a dotnet web server provides. Take into account the super debugging capabilities/tooling and the sizeable market that keeps providing projects on the platform, we surely have more than a winner in ASP.NET. ...

Free Excel Template for Scrum Projects

Excel is the only program you need to survive in IT. So, how about a template for tracking tasks in an Agile Scrum project? Why Scrum? If you are looking for the answer on why agile / scrum - You are in the wrong site That is well beyond the scope of this post In short: Scrum is a framework to run your project using Agile methodologies. Scrum’s objectives are - Self-organise Learn by doing things and through experience Continuously improve Read more on Atlassian’s site. ...

A story of company case studies and API testing

#rant that none asked for. I came across this whitepaper on testing micro services. I clicked on this link because I am writing microservices now but I am fairly new to microservices. I did a mistake that I have repeated 1593 times in the past. The said link was a resource by one of the big IT service providers. While the work indeed is commendable - automating 4000 test cases is no joke, the content and approach for highlighting the “best practice” leave much to be desired. ...