ReactJS - Inplace Edit component

Last time, I was trying to render a data table and I thought that I should make some fields editable right in the table listing. It is interesting to note that I never thought about any NPM library for it, so I went all out to create a simple but effective solution for myself. In this post, I will demonstrate how I created an editable component. The component would be able to use different form fields and notify the parent if any change has been made. That said, Let’s move…. ...

January 20, 2020 · 8 min · Aleem Isiaka

AdonisJS - Event

Modern application development requires that some actions are carried out when a point of the application is reached. Tasks like confirmation email, invoice generation, logging and profiling are few of things that requires to be carried out in specific regions of application flow. These actions that are triggered are called Events. Events in modern application development make code execution after a web request to the server has been completed to be possible. ...

January 19, 2020 · 2 min · Aleem Isiaka

AdonisJS - Route Model Binding

AdonisJS was built for the NodeJS Artisans taking after the concepts of Laravel - The PHP framework for Artisans. AdonisJS did a great job porting these concepts into JavaScript, it maintains the namespace even though JavaScript does not support that, it using its own fast, easy and extendable view engine and many more, but some features of Laravel are not shipped with AdonisJS by default. The IoC container in Laravel auto injects classes by inspection when a recognized namespace is Type Hinted. This makes route model binding easier with Laravel. In JavaScript, there is little that can be done to achieve this, so, there is a need for a custom approach to this. ...

January 12, 2020 · 5 min · Aleem Isiaka

AdonisJS - Using Validators with resource routes

First, install the Validator using the adonis command: 1 adonis install @adonisjs/validtor Create a resource route 1 adonis make:controller PostController --resource Define the route in start/route.js 1 2 3 //.. Route.resource("posts", "PostController") //.. Now, we can make a Validator for /posts/store a d o n i s m a k e : v a l i d a t o r S t o r e P o s t This will create a validator in /app/Validators. ...

January 10, 2020 · 1 min · Aleem Isiaka

Migrating from WordPress to Gatsby - The Journey

Yes, this topic is worth a post and I will walk you through why the migration was inevitable, and how I had done it. Formerly, this website used to run on WordPress, the great PHP CMS. The design was made with the aid of Typography theme, I loved it! All of the post prior to this date was written using the WordPress admin dashboard. I loved the Gutenberg Editor, it was so fluid and easy to work with. Overall my experience was great. ...

December 15, 2019 · 8 min · Aleem Isiaka

Programmer's Sexiness Quest

Let’s be guided, we are not getting naughty here. Nevertheless, a programmer is a human, he has his feelings and emotions which is interesting. The direction he puts these uniquely human traits makes him more interesting - towards the code and software, of course. I’ve been through a variety of programming languages, which always turned to be that the deeper I dive into a language, the more “aha” moment I get. I always feel like I have gotten what I wanted and have to look no further to attract the priceless attention of my fellows. ...

October 15, 2019 · 4 min · Aleem Isiaka

Complete NodeJS App Setup on an AWS Lightsail VPS

In this post, we will explore how to set up a NodeJS app on Amazon’s Lightsail instance. We will also explore setting up a CircleCI job for a NodeJS project, use Nginx as a web server, setup SSL for the server, and allow a local machine to access the remote server. Prerequisites AWS Lightsail instance AWS Route53 domain (not mandatory) CircleCI account Github repo for the NodeJS project. Let’s begin! ...

August 6, 2019 · 13 min · Aleem Isiaka

Clean Code – Rules For Name Crafting (Series)

The very first task that we do while starting to program is naming from the creation of directory to files, to classes, to functions. Name is everywhere, we cannot escape it, and we do so much of naming, we should be fulfilled if we can do it better. Beginners do marvel at how the seniors snap out great names that fit the context to be applied. How the names are crafted seem like magic, they end up seeing themselves not so close when they see that wack name their brain could best provide. ...

July 30, 2019 · 2 min · Aleem Isiaka

Clean Code – Brief Review

Currently, I find my self reading Clean Code by Robert Cecil Martin, and just completed the first three chapters. I am taking my time to digest the genius work of Robert, and I see it as a need to share what could be understood in just the first 50 pages of the book. To Robert, spending time to write the right code is an investment in the future maintenance time of that code. You can probably relate how a poorly written code has made you brainstorm for hours if not days before you could make that simple one-line change. ...

June 26, 2019 · 3 min · Aleem Isiaka

Running mongod service in the background – MAC OS

MongoDB ships with an easy mongod CLI command to start its server. For Linux users, there is an added level of flexibility using the Systemd service to manage foreground and background processes. To start a MongoDB server on the boot of a Linux machine, it is as easy as registering a service with systemd using: 1 $ systemctl enable mongod.service Switching from a Linux machine to Mac, and after the successful installation of MongoDB, surely, there is a need to start the command in the background while the development process continues. ...

June 26, 2019 · 1 min · Aleem Isiaka