Course Overview
In this project-based course, we will build a complete REST API in Go from scratch and deploy it to the cloud, ready to handle real traffic and scale affordably.
Our journey begins by creating a simple TCP server, which will help us explore the net/http package in Go and understand the basics of handling network communication.
Next, we’ll dive into the theory behind building reliable and composable Go web applications. From there, we’ll develop our project step-by-step, covering carefully curated topics such as request handling, middleware creation, database integration, request and database optimisations and rate limiting to equip you with the skills needed to ship real backend services to the cloud and manage real-world traffic efficiently.
This course aims to provide you with the foundational knowledge required to build and understand backend systems, implement industry best practices, and create production-ready APIs that are secure, scalable, and maintainable. It is not just a step-by-step tutorial, but a comprehensive learning experience that prepares you for real-world scenarios.
Legal Notice:
All product and company names, logos, and trademarks featured on this thumbnail are the property of their respective owners. Their use in this course does not imply any affiliation, sponsorship, or endorsement by these companies.
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 5 bài · 13 phút
Chương 2 Project Architecture 1 bài · 9 phút
Chương 3 Mini Course: Advanced Go 13 bài · 1 giờ 50 phút
- Introduction Học thử
- Effective Error Handling Học thử 15:28
-
Interfaces 16:16
-
Testing 6:17
-
Pointers 12:15
-
Goroutines 10:13
-
Context and Timeouts 13:29
-
Concurrency with Channels 13:20
-
Maps 6:20
-
Capstone Project (Exercise) 2:13
-
Capstone Project Solution 2:30
-
Map Concurrency & Mutexes 12:06
-
Final word
Chương 4 Building a server from TCP to HTTP 4 bài · 31 phút
-
TCP Server - net package 8:27
-
Understanding Routing 3:54
-
HTTP Server - The net/http package 11:02
-
Encoding & Decoding JSON Requests 7:44
Chương 5 Scaffolding our API Server 5 bài · 48 phút
-
Setting up your Development Environment 7:51
-
Clean Layered Architecture 11:31
-
Setting up the HTTP server and API 18:11
-
Hot Reloading in Go 3:30
-
Environment Variables 6:56
Chương 6 Databases 5 bài · 1 giờ 3 phút
-
The Repository Pattern 9:20
-
Implementing the Repository Pattern 7:51
-
Persisting data with SQL 12:53
-
Configuring the DB Connection Pool 17:15
-
SQL Migrations 15:40
Chương 7 Posts CRUD 14 bài · 2 giờ 21 phút
-
Marshalling JSON responses 14:25
-
Creating a User Feed Post 14:19
-
Getting a Post From a User 11:41
-
Internal Errors Package 7:06
-
HTTP Payload Validation 7:43
-
DB Relationships & SQL Joins 5:04
-
Adding Comments to Posts 15:44
-
Updating and Deleting Posts 23:29
-
Standardising JSON Responses 3:06
-
Optimistic Concurrency Control 14:09
-
Managing SQL Query Timeouts 4:52
-
Database Seeding 18:54
-
Database Seeding: "SSL not enabled" problem
-
Challenge: Create Comments for Posts
Chương 8 User Feed 4 bài · 1 giờ 7 phút
-
Creating the User Profile 11:22
-
Adding Followers 25:10
-
SQL Indexes 8:48
-
User Feed Algorithm 21:12
Chương 9 Filtering, Sorting, and Pagination 2 bài · 30 phút
-
Pagination and Sorting 14:47
-
Feed Filtering 15:12
Chương 10 Documentation 3 bài · 25 phút
-
Windows problems when generating swagger docs
-
Auto Generating Docs for the API 16:00
-
Documenting the Handlers 9:26
Chương 11 Structured Logging 1 bài · 13 phút
-
Adding a Logger 12:32
Chương 12 User Creation 3 bài · 1 giờ 15 phút
-
User Registration Overview 26:01
-
SQL Transactions 23:01
-
User Activation 25:38
Chương 13 Sending Emails 4 bài · 1 giờ 17 phút
-
Sending the Invitation Email 39:24
-
(Optional) Sending Emails using MailTrap 7:28
-
Improving Further the Email 11:47
-
Extra: Building the Confirmation UI 18:24
Chương 14 Authentication 5 bài · 1 giờ 26 phút
-
Authentication Overview 23:52
-
Basic Authentication 14:27
-
Generating Tokens 27:07
-
Validating Tokens 20:09
-
Challenge: Bug on Token Generation Handler
Chương 15 Authorization 4 bài · 41 phút
-
Authorization Overview 6:50
-
Authorization Database Setup 9:03
-
Role Precedence Middleware 19:41
-
Fixing the User Invitation 5:02
Chương 16 Redis Caching 2 bài · 46 phút
-
Designing for Performance 8:11
-
Caching the User Profile 38:11
Chương 17 Testing 3 bài · 43 phút
-
Testing Overview 6:40
-
Testing the User Handler 28:06
-
Spies 8:24
Chương 18 Graceful Shutdown 1 bài · 12 phút
-
Graceful Server Shutdown 11:56
Chương 19 Rate Limiting 1 bài · 22 phút
-
Rate Limiting our API 21:51
Chương 20 Handling CORS 1 bài · 14 phút
-
Handling CORS errors 13:45
Chương 21 Server Metrics 1 bài · 10 phút
-
Basic Server Metrics 10:02
Chương 22 Automation (CI/CD) 2 bài · 26 phút
-
Continuous Integration 14:25
-
Changelog 11:34
Chương 23 Production Deployment 1 bài · 24 phút
-
Deploying to Google Cloud 24:21
Requirment
-
Basic Go Knowledge
Outcomes
-
Learn the Fundamentals of Web Development with Go
-
Build Production Grade Applications with Go
-
Learn to Weight and Think about Software Design Decisions
-
Learn to Build and Deploy Go APIs to the Cloud
-
Learn How to Scale and manage Traffic
-
Learn How to Connect a Postgres Database with a Go Server
0 Student
2 Courses
0 review