2 Commits

2 changed files with 8 additions and 3 deletions

View File

@@ -11,7 +11,12 @@ func main() {
fmt.Println("Welcome to lst backend where all the fun happens.")
r := gin.Default()
r.GET("/", errorLoc)
r.GET("/api/ping", func(c *gin.Context) {
c.JSON(200, gin.H{"message": "pong"})
})
r.Any("/", errorLoc)
r.Run(":8080")
}

View File

@@ -1,6 +1,6 @@
Write-Host "Building the docker images for front and backend"
docker build -t logistics_support_tool:frontend-latest -f ../frontend/Dockerfile ../frontend
docker build -t logistics_support_tool:backend-latest -f ../backend/Dockerfile ../backend
docker build -t logistics_support_tool:frontend-latest -f ../frontend/Dockerfile --no-cache ../frontend
docker build -t logistics_support_tool:backend-latest -f ../backend/Dockerfile --no-cache ../backend
Write-Host "Tagging the builds with latest this is for testing test basically."
docker tag logistics_support_tool:frontend-latest git.tuffraid.net/cowch/logistics_support_tool:frontend-latest