From ade185c2dc7f9232570534fab92fb62737627225 Mon Sep 17 00:00:00 2001 From: slashexx Date: Sun, 3 Nov 2024 00:40:55 +0530 Subject: [PATCH] Dockerized --- backend/api-gateway/main.go | 4 +++- backend/code-execution-service/main.go | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/api-gateway/main.go b/backend/api-gateway/main.go index fdfe73f..7fed728 100644 --- a/backend/api-gateway/main.go +++ b/backend/api-gateway/main.go @@ -4,6 +4,7 @@ package main import ( "bytes" "encoding/json" + "fmt" "log" "net/http" ) @@ -47,5 +48,6 @@ func executeCode(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/execute", executeCode) - log.Fatal(http.ListenAndServe(":8081", nil)) + fmt.Println("API Gateway running on port 8080\n") + log.Fatal(http.ListenAndServe(":8080", nil)) } diff --git a/backend/code-execution-service/main.go b/backend/code-execution-service/main.go index e1bfef5..538aae8 100644 --- a/backend/code-execution-service/main.go +++ b/backend/code-execution-service/main.go @@ -47,6 +47,6 @@ func runHandler(w http.ResponseWriter, r *http.Request) { func main() { http.HandleFunc("/execute", runHandler) - fmt.Print("code-execution-service started at port 8080\n") - log.Fatal(http.ListenAndServe(":8080", nil)) + fmt.Print("code-execution-service running on port 8081\n") + log.Fatal(http.ListenAndServe(":8081", nil)) }