Complete Backend API in Golang (JWT, MySQL & Tests)

Complete Backend API in Golang (JWT, MySQL & Tests)

168.716 Lượt nghe
Complete Backend API in Golang (JWT, MySQL & Tests)
► Checkout the most recent version of this course: https://youtu.be/h3fqD6IprIA ⚡️Join to learn how to build production Go APIs: https://www.selfmadeengineer.com/ In this course we're going to be building a production-ready E-commerce REST API in Go using JWT authentication, we'll be testing our services and connecting our server to a MySQL. We'll build everything from scratch so that I teach you just enough for you to be able to go on your own and not having to watch another video on how to build APIs in Go. ►Resources: Source code: https://github.com/sikozonpc/ecom Improvement Exercises: https://github.com/sikozonpc/ecom/blob/main/IMPROVEMENTS.md 📢 We're building a Discord community, come and join https://discord.com/invite/3JhkwjQHjc 🙋🏼‍♂️ Socials: X: https://x.com/tiago_taquelim_ Github: https://github.com/sikozonpc Hope you liked and thanks for watching! Time Stamps 👇 00:00:00 Intro 00:02:40 HTTP Server setup 00:07:00 User service 00:11:00 Database Connection & Envs 00:18:45 Registering users 00:36:07 Testing the user registration 00:47:48 Database migrations 00:56:20 User login 01:00:20 JWT Authentication 01:06:54 Products service 01:11:25 Checkout endpoint 01:27:00 Checking logged-in users #golang #backend #api #jwtapi Video titles ideas (for the algo): REST API in Golang Beginner Tutorial Building a JSON API in Golang How to build a REST API in Golang