Raspberry Pi

How to Write a Golang App Remotely on a Raspberry Pi Using Atom

Wouldn’t it be cool to remotely program a Golang app on a Raspberry Pi? In this post, I write how to do that if you are using Atom. TL;DR; Setup a Raspberry Pi Device Setup Golang on that Device Install remote-ftp on your Machine Connect from your Atom Write a Golang Application ...

March 13, 2022 · 6 min · 1189 words · Bartlomiej Mika
RSA Encryption

How to Perform RSA Encryption in Javascript (React.js) and Golang

Do you want your React.js (web) frontend app talking to your Golang backend server? In this post, I’ll explain how I got cross-devices RSA encryption working in JavaScript and Golang. ...

February 7, 2022 · 6 min · 1256 words · Bartlomiej Mika

Example of Writing a Simple gRPC Server in Golang from Scratch

How do you write a Golang server using gRPC from scratch? Heres how to do it. ...

March 27, 2021 · 3 min · 599 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
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

How to Write a Unit Test for a Remote Procedural Call in Golang

Recently I have been learning about remote procedural calls (RPCs) in *Golang and realized I was unable to find an easy example on how to write a unit test for RPCs. In this post, I’ll explain how I figured out a solution. ...

August 13, 2020 · 3 min · 483 words · Bartlomiej Mika
Peercoin

How to Setup Peercoin on Raspberry Pi for Headless Minting

Would you believe you can participate in cryptocurrency production using a simple Raspberry Pi computer? No need for powerful ASIC miners! Peercoin is an interesting altcoin that has minting capability built-in, and minting is the ability to create new coins from the ones you already have. In this tutorial, you’ll learn how to set up a dedicated Raspberry Pi computer to mint the Peercoins in your wallet. ...

July 26, 2020 · 5 min · 939 words · Bartlomiej Mika