Quality tutorials & resources. No BS._

Featured Subjects

See all →

Free Courses

View all courses →

Latest Posts

Fetch API Components with Vue 3 Composition API Part 4 of 4 in Using Fetch API with VueJS
Author Dan Pastori avatar
Dan Pastori November 29th, 2021

One of the biggest pain points I see between using the Fetch API and Axios is the way Fetch is configured out of the box. I love the power, but Axios comes with some default config and a way to make it easy to set global settings. I want to see if I can abstract some of the settings that are generally used across all API requests and make them reusable with the Fetch API. I’m going to structure this reusability similar to building an API wrapper with axios. The main difference (besides using Fetch instead of Axios), is we are going to implement these methods using the new Vue 3 Composition API!

Keep Reading →
Break between articles Break between articles
Sending POST, PUT, and PATCH Requests with Fetch API and VueJS Part 2 of 4 in Using Fetch API with VueJS
Author Dan Pastori avatar
Dan Pastori November 15th, 2021

In the last tutorial, we covered the differences between the Fetch API and Axios when sending a GET request. Let’s take it up another notch and send POST, PUT, and PATCH requests with the Fetch API and compare how these methods operate compared to an Axios request.

If you want to jump ahead and see the answer, check out the Github repo for this component here. You can see the differences right away. If you want to see how this works, keep reading!

Keep Reading →
Break between articles
Previewing a CSV file with VueJS and Papaparse Part 7 of 7 in Your Guide To Uploading Files with VueJS and Axios
Author Dan Pastori avatar
Dan Pastori November 1st, 2021

There are so many use cases for allowing a user to upload a CSV file into your application. However, there are equally as many problems with CSV file uploads such as empty columns, bad data, etc. These issues are why this is my favorite tutorial of the Uploading Files with VueJS and Axios series. This tutorial solves this problem using a fantastic open source library called Papaparse.

With Papaparse, we can actually allow the user to preview their CSV upload and make changes to the data BEFORE submitting the file to the server. Papaparse even gracefully handles empty lines and headers. While there is so much that Papaparse can do, we are going to touch on a few scenarios. I’d highly recommend checking out their documentation to see the library’s full feature set.

Keep Reading →
Break between articles
Preview Video Before Uploading with HTML5 and VueJS Part 6 of 7 in Your Guide To Uploading Files with VueJS and Axios
Author Dan Pastori avatar
Dan Pastori October 25th, 2021

I believe it’s good UX to allow the user to preview their media files before uploading them to a server. This is for both audio and video files. Coming from the last tutorial where we previewed an MP3 file, you will notice a lot of the code here is very similar. Previewing a selected video file in an HTML5 video element is VERY similar to previewing a selected audio file in an HTML5 audio element. Both make use of the modern elements.

Keep Reading →
Break between articles
1 2 3 24