Webdev
-
5 free coding games where you write javascript to play
If you're itching to write some code, but you can't stand the thought of another MEAN, MERN, or PERN stack, here's a few resources to help you explore javascript using a slightly different approach -...
read article -
Passwordless sign-in with Google One Tap for Web
I sign in with my Google account everywhere I can to avoid having yet-another-password on another random website. I've been seeing an upgraded experience on some sites (maybe I'm just noticing now)...
read article -
How to handle API errors in your web app using axios
Note: If you want to see how to handle these in React, take a look at my new post on that here - handling async errors with axios in react. Whenever you're making a backend API call with axios, you...
read article -
Creating a simple npm library to use in and out of the browser
Sharing some reusable javascript is hard - even moreso if you're trying to share between node and the browser. I'm just trying to share some 10 lines of code. Why is this taking me more than a day to...
read article -
Using Angular innerHtml to display user-generated content without sacrificing security
Why do some of your styles no longer work when using [innerHtml] to show some HTML content? Angular comes with a built-in html sanitizer DomSanitizer, as a security feature, thats used whenever you...
read article -
Setting up automatic failover for your static websites hosted on S3
Up until late last year, you couldn't set up automatic failover in CloudFront to look at a different bucket. You could only have one Primary origin at a time, which meant that you needed additional...
read article -
Create your own short link redirects using CloudFront + S3
Get branded short links under your own domain for dirt-cheap by self-hosting it on AWS using CloudFront + S3. It's a no-code server-less solution to get redirects on the cheap and in this guide, I'll...
read article -
Adding Google Sign-in to your webapp - a React example
[embed]https://www.youtube.com/watch?v=iND-Epl8nz0[/embed] *Check out the video to see me follow along with the code. In this next part of the series, I'll be walking you through an implementation of...
read article -
Adding Google Sign-in to your webapp - using the JS library
In the first part of the series, we decided to use the Google Sign-In for websites library to allow you to show some info about the user using javascript. In that part, we use the default Google...
read article -
Adding Google Sign-in to your webapp - Hello World
[embed]https://youtu.be/KwOmVpd1DUA[/embed] *Check out the video to see me follow along with the code. Gotten stuck in a rabbit hole figuring out how to add "Log In with Google" to your web...
read article -
Running webdriverio tests using headless chrome in Docker
Using headless chrome for your UI tests works great out of the box on your laptop, but it won’t work out of the box when you're trying to run your tests in Docker. One recent work project was getting...
read article