Udemy Golang master class notes

If we did initialize the project then run

go mod init github.com/ngodup/simplebank

Section 1: Working with database [Postgres + SQLC]

  1. Lesson 1 : Design DB schema and generate SQL code with dbdiagram.io10min
  2. Lesson 4: Use Docker + Postgres + TablePlus to create DB schema13min
  3. Lesson 5 : How to write & run database migration in Golang
  4. Lesson 6: Generate CRUD Golang code from SQL | Compare db/sql, gorm, sqlx & sqlc
  5. Lesson 7: Write unit tests for database CRUD with random data in Golang
  6. Lesson 8: A clean way to implement database transaction in Golang
  7. Lesson 9: DB transaction lock & How to handle deadlock in Golang
  8. Lesson 10 How to avoid deadlock in DB transaction? Queries order matters!
  9. Lesson 12: Setup Github Actions for Golang + Postgres to run automated tests

Section 2: Building RESTful HTTP JSON API [Gin + JWT + PASETO]

  1. Lession 13: Implement RESTful HTTP API in Go using Gin
  2. Lesson 14. Load config from file & environment variables in Go with Viper
  3. Lesson 15. Mock DB for testing HTTP API in Go and achieve 100% coverage
  4. Lesson 16 Implement transfer money API with a custom params validator
  5. Lesson 17 Tutorial: Adding Users Table with Unique & Foreign Key Constraints in PostgreSQL
  6. Lesson 18. How to handle DB errors in Golang correctly
  7. Lesson 19. Securely Storing User Passwords with bcrypt in Golang
  8. Lesson 20. Writing Stronger weewith Custom GoMock Matchers
  9. Lesson 21. Why PASETO is better than JWT for token-based authentication?
  10. Lesson 22 : How to Create and Verify JWT & PASETO Tokens in Golang
  11. Lesson 23 – Implement Login User API with PASETO/JWT Access Tokens in Go
  12. Lesson 24 Implement authentication middleware and authorization rules in Golang using Gin

Section 3: Deploying the application to production [Docker + Kubernetes + AWS]

  1. Lesson 25 How to build a small Golang Docker image with a multistage Dockerfile
  2. Lesson 26 How to use docker network to connect 2 stand-alone containers ?
  3. Lesson 27 How to write docker-compose file and control service start-up orders ?
Scroll to Top