Posts
How to Integrate Swagger UI in Go Backend - Gin Edition
· β˜• 11 min read
Unlike FastAPI, Gin does not have OpenAPI integration built in. With FastAPI when you add a route, documentation is already generated. With Gin, this is not the case. But recently I integrated Swagger UI in one of my Go backends and I wanted to document that process.
https://d2kbulfv42d43j.cloudfront.net/2022/Q2/swagger-ui-routes-documented.png

Manage Docker Environment on VPS with your Local Portainer
· β˜• 2 min read
In last post we learned to install and configure Portainer to maintain your local Docker environment. In this post I'm going to extend on last post and show how can you manage your VPS docker environment from your local Portainer installation.
https://d2kbulfv42d43j.cloudfront.net/2022/Q2/portainer-add-agent-environment-screen.png

Install and Configure Portainer on your Local Machine
· β˜• 3 min read
This is a quick post where I demonstrate how to install Portainer on Ubuntu. And then use the same instance to Portainer to manage/administer Docker instance on your VPS. Regardless this tutorial is demonstrated on Ubuntu, you can run Portainer on whatever Docker host you are using including Windows.
https://d2kbulfv42d43j.cloudfront.net/2022/Q2/portainer-first-login.png

gRPC for Absolute Beginners, in Go
· β˜• 13 min read
Internet has evolved in last 2 decades a lot. HTTP/1.1 was not enough so we have HTTP2 now. The specification we used to transfer data between client and the server has also evolved. From XML, to JSON, and now we have Protocol Buffer, which is a binary spec. Let's dive deeper.
https://d2kbulfv42d43j.cloudfront.net/2022/Q2/grpc-service-method-types.jpg

TDD Approach to Create an Authentication System With FastAPI Part 5
· β˜• 9 min read
We have been using FastAPI along with the Test-Driven Development process to come up with an authentication system. Till now we can register to own a tiny application using a username and password. We are also able to generate a JWT token to be classified as a logged-in user. But there is no point in logging in until the logged-in user can do something privileged. In this iteration of the series, we'd see how to access a protected endpoint using FastAPI and JWT.
https://d2kbulfv42d43j.cloudfront.net/2022/Q2/response_with_and_without_JWT_token.png

TDD Approach to Create an Authentication System With FastAPI Part 4
· β˜• 11 min read
In the last couple of posts in TDD Auth with FastAPI series, we've been sustainably moved towards a web service that can let users register with the service. Now what? We have already done the easy part. The next part is to look at the authorization. This involves letting the user log in. And only give access to what they are authorized for. Let us look at the login part first.
https://d2kbulfv42d43j.cloudfront.net/2022/Q2/login_sequence.png

Building a Book Store API in Golang With Gin
· β˜• 9 min read
Go community believes that we need no framework to develop web services. And I totally agree with that. When you work without using any framework, you actually learn the ins and outs of development. But once you learn how things work, you must reside in a community and don't reinvent the wheel.
https://d2kbulfv42d43j.cloudfront.net/2022/Q1/gin-golang-banner.jpg

__init__ vs __new__ and When to Use Them
· β˜• 5 min read
I recently got asked to me what did __init__ dunder method did in Python. And I was like, "it is used to initlize variables inside a class". And just after that the followup question was, "then what is __new__ used for. And I was completely blank.
https://d2kbulfv42d43j.cloudfront.net/2022/Q1/__new__vs__init__.png

How to Setup a Jenkins to DockerHub Pipeline with Multi-Arch Images
· β˜• 13 min read
We have previously seen how to set up a GitHub to Jenkins pipeline with webhooks, this time we are going to continue on that lesson and learn how to configure Jenkins to build and push Docker images to DockerHub. We’ll also see how to create images for both arm64 as well as amd64 architectures machines. Keep on reading.
https://d2kbulfv42d43j.cloudfront.net/2022/Q1/banner_jenkins_to_dockerhub_pipeline_multi-arch.jpg

How to Setup a GitHub to Jenkins Pipeline with WebHooks
· β˜• 10 min read
In a typical CI/CD pipeline, what happens is when you push your code to a code repository (remote) like GitHub/GitLab/BitBucket, an event is triggered by the git host provider. This trigger is known as WebHook. This webhook can be used by some third-party service to provide an array of integrations. Do you want to tweet on every git push? You can do that.
https://d2kbulfv42d43j.cloudfront.net/2022/Q1/GitHub-Jenkins-DockerHub.jpg

I Tried Open edX and it's Awesome
· β˜• 7 min read
This is a quick post where I talk about getting started strategies with Open edX as a developer. In this post I am documenting the process of edx installation on my local system for evaluating.
https://openedx.org/wp-content/uploads/2018/12/develop@2x.png

This is how OOPs and Mocking are related to Dependency Injection
· β˜• 12 min read
There are a few words, like unit testing, integration testing, mocking, dependency injection, object oriented proramming which are all related to each other. In this post I'm going to talk how, and then it will start to make sense to you.
https://d2kbulfv42d43j.cloudfront.net/2022/Q1/dependency_inversion_principle.webp