mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/hafizhproject45/Golang-Boilerplate.git/internal/config"
|
||||
"github.com/hafizhproject45/Golang-Boilerplate.git/internal/database"
|
||||
"github.com/hafizhproject45/Golang-Boilerplate.git/internal/database/seed"
|
||||
)
|
||||
|
||||
func main() {
|
||||
db := database.Connect(config.DBHost, config.DBName)
|
||||
|
||||
if err := seed.Run(db); err != nil {
|
||||
log.Fatalf("❌ Failed run seeder: %v", err)
|
||||
}
|
||||
|
||||
log.Println("✅ Seed Successfully")
|
||||
}
|
||||
Reference in New Issue
Block a user