Middleware Setup for REST API

Setting Up Logging Middleware for Re4-pick-a-gun

We are at a pretty good spot with setting up a REST API for the pick-a-gun server. I have some routes and I’m able to get new JSON’s. The overall plan is to throw this inside a docker container but I need one important thing. Logs, the make or break situation to determine if our application is actually doing something or giving us important error messages along the way. I want to use Kibana for monitoring these logs so we’ll form our JSON to make it Kibana friendly. Technically, kibana will receieve any JSON for standard output but we have a nice little tool for making that easier.

[Read more]

Reading a Windows SSD into Manjaro

Windows, let me go!

When I installed Manjaro on my desktop, I got a new ssd and hard drive so I wouldn’t have to risk wiping the original windows SSD I’ve had for 8 years. I thought I’d install Manjaro and once I’m up and running, I’ll read in the data now that I have larger drives. Well, I faced a simple reminder that Windows isn’t gonna let me leave without a fight and will attempt to hold my data hostage. Drama aside, we can’t have that.

[Read more]

re4-pick-a-gun Server Setup

Let’s carve a path for the REST API

We’ve made a big move in moving everything into packages for the pick-a-gun service. Now we want to use the core package and use those function to build a REST API.

Design

For this implementation, I want to use Gorilla mux, a tried and true request and router dispatcher. I can build routes easily and more importantly, middleware is easy to plug in(more on that later.)

[Read more]

Moving Day! Let’s create some Go packages

Restructing the repository for the pick a gun service

I have begun working on a REST API server with Gorilla for the pick a gun service and imported the core API. I realized that Fyne was getting indirectly imported even when the internal core package doesn’t need it, it just runs on the standard library.

Sure it’s indirect, but I’m trying to keep Fyne in the UI. To eliminate this, I need to finally restructure the ui, cli and core into their own packages. When this started as a small project, I admittedly loosened some of my standards in exchange for faster development. The technical debt isn’t bad but I should take a step back to do some general maintenance of my repo.

[Read more]

Updating image bundles in Fyne UI

Time to get this through the finish line

When I added to the API, I set the table. When I updated the CLI, I fired up the grill. Tonight, when I update my UI, I will feast. So far the development has been smooth. The API required minimal changes so the CLI and UI we’re easy to work on. Only thing I needed to do was update the images and add some buttons for character selection.

[Read more]