Загрузка...

Go REST API for Beginners - Todo App with Gin, PostgreSQL & JWT Auth

🚀 Build a production-ready REST API in Go from scratch! Learn Gin framework, PostgreSQL, JWT authentication, and clean architecture patterns.

🔥 What You'll Build:
✅ User registration & login with bcrypt
✅ JWT-based authentication middleware
✅ Full CRUD operations for todos
✅ PostgreSQL database integration
✅ Clean repository pattern

💻 Tech Stack:
- Go + Gin Framework
- PostgreSQL
- JWT & Bcrypt
- RESTful API design

Perfect for beginners wanting to master backend development with Go!

⏱️ Timestamps:
00:00:00 - Introduction
00:01:32 - API Request-Response Cycle
00:12:04 - API Features Demo
00:27:21 - API Setup + Config
00:37:13 - Creating the Home Route - Gin Server
00:55:52 - Testing the Home Route - Postman
00:57:06 - Installing PostgreSQL
01:00:04 - Configuring PostgreSQL
01:13:51 - Creating & Configuring the Database Connection
01:34:58 - Creating Todos Migration - PostgreSQL
02:02:19 - Creating the Todo Model
02:15:55 - Creating a Todo - Repository
02:31:55 - Creating a Todo - Handler
02:49:06 - Creating a Todo - Postman
02:52:32 - Getting all Todos - Repository
03:05:11 - Getting all Todos - Handler
03:10:59 - Getting all Todos - Postman
03:12:29 - Getting a Todo - Repository
03:18:10 - Getting a Todo - Handler
03:35:17 - Getting a Todo - Postman
03:37:26 - Updating a Todo - Repository
03:43:46 - Updating a Todo - Handler
04:04:42 - Updating a Todo - Postman
04:28:38 - Deleting a Todo - Repository
04:36:09 - Deleting a Todo - Handler
04:44:21 - Deleting a Todo - Postman
04:45:48 - Creating Users' Migration - PostgreSQL
04:56:29 - Creating the User Model
05:00:20 - Creating a User - Repository
05:09:19 - Getting a User by Email - Repository
05:13:17 - Getting a User by ID - Repository
05:13:55 - Creating a User - Handler
05:30:59 - Creating a User - Postman
05:51:18 - Understanding a Hashed Password - bcrypt
05:58:23 - User Login - JWT
06:02:10 - User Login - Handler
06:23:34 - User Login - Postman
06:24:36 - Understanding a JSON Web Token - JWT
06:26:36 - Creating the Authentication Middleware
06:47:30 - Protecting a Test Route - Auth Middleware
06:57:25 - Adding Ownership to Todos - Todo Migration
07:06:34 - Updating the Todo Model - Adding Ownership
07:07:27 - Updating the Todo Repository Layer - Adding Ownership
07:13:38 - Creating & Protecting a Route Group - Gin Router
07:20:09 - Updating the Todo Handlers - Adding Ownership
07:28:24 - Final Testing - Conclusion

🔗 Resources:
GitHub Repository: https://github.com/ArnaCode/Go-Gin-Postgres-Todo-REST-API

💬 Questions? Drop them in the comments!
👍 Like & Subscribe for more backend tutorials!

#golang #restapi #backend #postgresql #jwt #webdevelopment

Видео Go REST API for Beginners - Todo App with Gin, PostgreSQL & JWT Auth канала Muslim Helalee
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять