Creating a Backend API: Golang, SQLite, HEIC Processing - Series episode 2

Опубликовано: 02 Февраль 2026
на канале: Learn Fast Make Things
2,619
54

In Part 2 of the full-stack photo slideshow series, we take a deep dive into the server-side of the application, discussing the various components that make up the backend.

We start by introducing the web server built using the Gin Gonic framework and Golang. We walk through the process of setting up the server, configuring routes, and handling requests and responses.

Next, we delve into the creation of the database using SQLite. We discuss how to interact with the database using Golang and handle various operations such as creating tables, inserting data, and querying the data.

Then, we discuss proper photo orientation for photos taken with a smartphone and the process of converting HEIC formatted images to JPEG. This includes discussing the exif data of the images and how to handle the rotation correctly.

We also discuss the routes needed for the API, including routes for uploading photos, logging in, storing cookie sessions, and providing the API for getting the next photo in the slideshow.

Finally, we touch on how the backend Golang server serves the transpiled Vue.js frontend. This includes discussing how to configure the web server to handle static files, serving the transpiled frontend, and handling client-side routing.

Throughout the video, we provide practical examples and demonstrations to help viewers understand how the backend works, and how each component fits together to create a complete server-side experience. By the end of Part 2, viewers should have a solid understanding of the backend, and how the server handles requests and communicates with the frontend, database, and image manipulation.

Watch the whole series:    • Creating a FULL-STACK Social Photo Sharing...  

Ask Cloud Architech website: https://askcloudarchitech.com
Git repo: https://github.com/askcloudarchitech/...

Chapters:
Intro - 0:00
File structure overview - 0:30
The SQLite Database - 0:57
HEIC to JPEG conversion - 5:45
Correting photo orientation - 10:46
About the server - 12:10
Server startup and setup - 13:24
Gin Gonic session storage - 14:29
Setting up routes and handlers with Gin - 15:00
Login handler - 17:25
IsAuthenticated handler - 18:46
Photo upload handler - 19:27
Next photo handler - 24:20