Pete Hawkins

Pete Hawkins @phawk

About: Making things on the internet for fun and profit.

Location:
UK
Joined:
Sep 19, 2019

Pete Hawkins
articles - 17 total

Creating your first VIEW_COMPONENT with Rails and Hotwire

In the following video I'll show you how easy it is to start using view_component with your Rails...

Learn More 19 0Jun 10 '22

6 Tips for Recording Screencasts Like a Pro

When I decided to start making screencasts I couldn't find great information on how to go about it...

Learn More 6 0May 9 '22

Screencast: Testing GraphQL with Rails and RSpec

In this video we start writing some automated tests using RSpec to cover the GraphQL mutations and...

Learn More 4 0Apr 29 '22

Screencast: Setting up a GraphQL server in Rails

In this video I'm going to walk you through setting up a GraphQL server in Ruby on Rails. We will...

Learn More 7 3Apr 22 '22

Why I open sourced my startup

Happi is now open-source. The entire codebase is freely available for anyone to self-host, contribute...

Learn More 14 1Oct 30 '21

Apple M1 Pro for Ruby development

I was lucky enough to get my 14" M1 Pro MacBook this week. Prior to ordering, I had some concerns...

Learn More 8 4Oct 29 '21

7 Ruby Standard libraries you should get to grips with

Ruby has a lot of useful things in its Standard Library. Learning what’s included and how to use it...

Learn More 23 2Oct 22 '21

Hotwire: best practices for stimulus

From my experience building several production apps with Hotwire, Turbo frames and Turbo streams...

Learn More 41 2Oct 15 '21

RSpec: request specs vs feature specs

In this screencast I introduce a rather small feature to Happi, setting the reply-to address for new...

Learn More 4 3Oct 13 '21

Password-less auth in Rails

One of the weakest points in your system can easily be end users credentials. It’s easy to forget...

Learn More 50 14Oct 6 '21

Screencast: Add welcome emails to Happi

This is the first video in a series where I build happi.team in public, literally, by screencasting...

Learn More 5 3Oct 4 '21

10 things I add to every Rails app

I end up creating a lot of Rails apps, and each time I get started I often find myself wanting to add...

Learn More 72 6Oct 2 '21

Flash messages with Hotwire

I’ll show you how to add flash messages to Rails, using a simple stimulus controller to auto dismiss...

Learn More 30 5Oct 2 '21

Modals in Hotwire, with zero JavaScript

A quick run through of how to create modals in Rails using Hotwire. I didn’t need to write any...

Learn More 39 5Oct 2 '21

The best way to run Tailwind CSS on Rails

Each time I go to startup a new Rails app for a side project I can’t remember how to set tailwind up...

Learn More 41 5Oct 1 '21

Update: typescript backend is in the bin.

It’s been almost a year since I last wrote about Nines tech choices. I wanted to give a brief update...

Learn More 1 4Oct 1 '21

Nine tech choices

You might think this is one of those buzzword ‘list of nine things’ style posts, don’t switch-off...

Learn More 3 0Oct 19 '20