RSSAmplifier

Blog

mikewilson.dev

Development thoughts by Mike Wilson. I've been making software for about 10 years now, and before that worked as a Business Analyst in the banking industry.

mikewilson.devRSS feed ↗10 posts

Latest posts

Supporting refresh tokens with Ash Authentication

Explore how to use Ash Authentication's existing password strategy to generate access tokens, and expand on it to support generating and exchanging access token and refresh tokens as well.

Using Hotwire with Rails for a SPA like experience

Previously, we created a SPA-like experience using Stimulus and RxJs. Let's recreate that using Turbo Frames, and add use Stimulus to add some polish, such as loading states and keeping track of the selected item.

Dynamic Dialogs with Hotwire and Minimal Javascript

Dialogs are a staple of almost every modern web application. Fortunately, there are some newer techniques that we can employ to make modal dialogs less of a headache, and we can combine Hotwire, some minimal Javascript and some clever CSS to make some good looking dialogs.

Stimulus and RxJS For Improved Loading States

See how we can use Stimulus and RxJS primitives to improve the handling of loading states in response to user actions.

Stimulus and RxJS for an SPA Like Experience

See how we can use Stimulus and RxJS along with server rendered templates to create a single-page-app like experience by just adding some sprinkles of Javascript.

Client Side Form Validation With Stimulus and Rails

Client side form validation is fairly easy to do with a framework such as Angular or Ember, but how can we get client validation with just Rails and Stimulus? With a sprinkling of Javascript, we can see just how easy it is to add some client side validation.

Redirecting to static webpacker Content With Rails

With the release of Rails 6, webpacker is the new default compilation pipe for Javascript assets. Learn how to create a standalone widget file which redirects to webpacker compiled assets.

Rails Vanity URL's With Route Constraints

Looking to create a root-level vanity URL, while still having a catch-all route or using high_voltage gem? Read on to learn how to use Route Constraints in Rails to achieve this.

Preventing Minitest Focus During CI

How to prevent accidentally leaving a Minitest focus statement in a pull request by patching the method to throw an exception in CI environments.

Ember CLI - Easily toggle between mocks and live server

How to modify Ember CLI's generated server code to easily toggle between http-mocks and a live development server using environment arguments.