Deploying a Go Fiber API to Fly.io with Database!
Vložit
- čas přidán 15. 06. 2024
- In this stream we build and deploy a simple Golang Fiber API to fly.io with database. So fast and easy!
00:00 Simple Fiber API
00:20 Install Flyctl
01:20 Basic Dockerfile
02:11 Install GORM
03:00 Setup ENV variable for database url
03:57 Add new User model
05:19 Add new user endpoint
06:17 Remove dependency on database
06:50 Deploy docker file to fly.io
09:03 Deployment Errors
09:24 Fix dockerfile
10:25 API works!
11:22 Connect up the database
13:30 Deploy again
15:06 Add new user via cURL - Zábava