Golang / RESTful(Gin) / PostgreSQL(GORM) - Stock Workshop | 982 min.
1,790 บาท
จากปกติ 2,700 บาท
ดูได้ 360 วัน (ไม่รวม Vat.)
บัญชีผู้ใช้ Facebook หรือ Google เมื่อใช้สมัครแล้วจะไม่สามารถเปลี่ยนแปลงภายหลังได้
![](https://codemobiles.co.th/upload/golang/golang_vdo_course.jpg?ref=1595300372558)
วีดีโอหลักสูตรนี้จะสอนการพัฒนา (Backend) API Services ด้วยภาษา Go Programming ที่ใช้ GIN and GORM ที่เป็น Framework ในการทำ Web API Middleware และ ORM เพื่อเชื่อมต่อ Database ภาษา Go จะขึ้นชื่อเรื่องความเร็วในการประมวลผลเมื่อเทียบกับ Node.JS เพราะหลักการGo จะใกล้เคียงกับการพัฒนา CGI ในสมัยก่อนที่ใช้ภาษา C ในการพัฒนาและเมื่อBuildออกมาจะได้ Machine-code ที่ทำงานไวมาก แถมยังรองรับการเขียนโปรแกรมแบบ Concurrency ได้ดีกว่า Node.JS ซึ่งจะเหมาะกับงานที่ต้องรับ Requests พร้อมกันได้เยอะๆ
สรุปคือเขียนยากกว่า Node.JS แต่มีประสิทธิภาพที่ดีกว่าและถ้าต้องการความสามารถด้าน Concurrency จำนวนมาก
*เนื้อหาโดยสรุป
- มี Source Code ต้นแบบให้ทำตาม พร้อม Workshop ส่วน CMStock (Backend ที่เขียนด้วย Go) ที่เชื่อมต่อกับระบบ React-POS
-
ในหลักสูตรนี้ นักเรียนจะได้เรียน Golang ผ่าน (Backend) Stock Workshop API ที่มีสอนเรื่อง Installation, RESTFul API (GET, POST, UPDATE, DELETE), UploadImage, SubModule, Group Route Middleware, CRUD - Database Connectivity (SQLite, MySQL, PostgreSQL), ORM, Secured API with JWT, Deployment และอื่นๆ
![](https://codemobiles.co.th/upload/golang/golang_workshop_all.jpg?ref=1595474334578)
Golang การติดตั้งและเรียนรู้เครื่องมือ
- เปรียบเทียบ Go vs Node.JS
- การติดตั้ง Golang Compiler
- Hot-Reload Setting
- การตั้งค่าพื้นฐาน VSCode สำหรับ Golang
- VSCode Extension ที่จำเป็นสำหรับ Golang
- สร้าง Golang โปรเจกต์ด้วย Go CLI
- รัน Golang Project
- เรียนรู้การใช้งาน Postman - Http-Mockup Tool
Golang Concept and Programming พื้นฐาน
- Golang Project Structure
- จุดเริ่มต้นของ Flow - main.go
- Go-cli
- Module
- GO-Path, Go-Root and Go Module
- Package (Main and Custom)
- Print log
- Variables, data type, Explicit and Implicit Declaration
- Function parameter, return, multiple return
- Condition if-else, switch-case
- Loop for, while, break
- Collection [Array and Slice], Length, Capacity
- Append Slice
- Struct vs Class in Go
- Encapsulation public, private
- Pointer * vs &
- Add 3rd party modules (Gin, Gorm)
Golang กับ RESTFul API (gin) พื้นฐาน
- การประกาศ HTTP GET/POST/DELETE/PUT RESTFul API
- ทดสอบด้วย Postman
- Error Handlering
- Fallback
- การรับค่าแบบ String Query, Parameter, Http Body
- JSON Parsing
- Sub Route
- การแยก Subroutes เป็นหลายๆไฟล์
- กำหนด CORS - Cross-Origin-Resource-Sharing
- Static File Folder Setting
- Urlencoding Form Handlering
- RAW JSON Handlering
- Upload file ด้วย Multipart Http POST
Golang กับ Stock Workshop with Array
- เริ่มสร้างโปรเจกต์ใหม่ สำหรับจำลอง Backend API สำหรับระบบ Stock สินค้าแบบง่ายๆ
- Add Product
- Query All Products
- Query by Id
- Delete Product by Id
- Update Product by Id
- MultiPart with Multer
- File Upload - Upload Product Image
- Update Image
- การทำ Data Validation
- การใช้ Built-in Http Exception ที่มากับ Golang
- Http Inception for JWT
เชื่อมต่อกับ PostgreSQL, MySQL, SQLite Database ด้วย Gorm framework
- ปรับ Stock Workshop ให้ใช้ Database จริง
- ติดตั้ง PostgreSQL Database
- เข้าใจ Concept ของ ORM (Object-Relational-Mapping)
- สร้าง Entity Mapping
- Primary Key Setting
- Field Schema and Validation
- สร้าง CRUD ผ่าน Service
- Join tables
- Debug SQL
- Switch Database Driver SQLite, MySQL, PostgreSQL
- SQLite VSCode Extension
- MySQL VSCode Extension
การเพิ่ม Authentication Module
- SignUp และ SignIn
- บันทึกข้อมูลลง Database
- MD5 Password Go-Bcrypted
- Http Interceptor Middleware
- สร้าง Secured API ด้วย JWT and Passport
- Bearer Authorization Concept
การ Deploy จริงบน Cloud server อย่าง Heroku
- Production Build
- Change PORT
- Run in SSL Mode
- Environment Configuration for Development and Production
- Manage service
- สอนนำขึ้น Heroku for Production
- การ Build แบบย่อขนาด Execution หรือเอาส่วน Symbols หรือ Debug Info ออก
|
|