Go

How to Import Datetime Columns from a PgAdmin5 CSV export file in Golang

If you’ve exported from PgAdmin a CSV file and tried to import that CSV into your Golang app, you may have noticed there is a challenge with importing the datatime. The purpose of this article contains the code I wrote to help me with this problem. ...

March 10, 2021 · 2 min · 341 words · Bartlomiej Mika
Red Mulberry

Red Mulberry Growlog #1

Red Mulberry (Morus rubra). (By: Famartin CC BY-SA 3.0) It is with great excitement and joy, I’d like to introduce to you the first post in a series of growlogs detailing my adventures with growing rare and beautiful Red Mulberry Trees. The first post will discuss what is mulberry tree, why I decide to focus on a red mulberry and how I am growing them. ...

February 7, 2021 · 6 min · 1181 words · Bartlomiej Mika

Winter Sown Seeds Growlog #1

It’s February and I am already planting my tree seeds for spring! The gardening technique I will be using is called “Winter-Sowing”. This is my first blog post pertaining to growing trees from winter sown seeds. I plan on logging and documenting my growing experience in this series of weblogs titled as Winter Sown Seeds Weblog. ...

February 6, 2021 · 3 min · 514 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 4: Access Control

Learn how to protect API endpoints with access and refresh tokens using the third-party jwt-go library. ...

January 31, 2021 · 16 min · 3313 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 3: Postgres Database

The purpose of this article is to provide instructions on how to setup postgres database with our application. ...

January 30, 2021 · 18 min · 3833 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 2: Simple Database

The purpose of this post is to learn how our basic API server can read the body of a request. In addition, we will learn how to use an easy-to-use simple database for beginners called scribble. ...

January 29, 2021 · 21 min · 4448 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 1: Basic Server

The purpose of this post is to provide instructions on how to setup a simple RESTful API server, in Golang, using only the net/http package and not any other third-party web framework. You will learn how to create REST endpoints within your project that can handle POST, GET, PUT and DELETE HTTP requests. This is the first post in a multi-post series. ...

January 25, 2021 · 12 min · 2522 words · Bartlomiej Mika
Cover photo by [Joan Gamell](https://unsplash.com/@gamell) on [Unsplash](https://unsplash.com).

Example of using JavaScript AJAX XmlHttpRequest with Django JsonResponse view

Forget Axios or any other third-party JavaScript library pertaining to API calling, the purpose of this article is to explain how to utilize the basic XmlHttpRequest with your Django project. ...

January 1, 2021 · 2 min · 425 words · Bartlomiej Mika
Hugo

How to Install Hugo From Git Bash for Window Users

The purpose of this article is to help beginners understand how to do the advanced install of hugo static site generator (SSG). ...

September 9, 2020 · 3 min · 503 words · Bartlomiej Mika
Hugo

How to Start a Personal Blog With Hugo a Static Site Generator Written in Go (Part 2)

The purpose of this article is to help you deploy your website to the internet. ...

September 7, 2020 · 2 min · 369 words · Bartlomiej Mika