Skip to content

Commit

Permalink
Dockerized
Browse files Browse the repository at this point in the history
  • Loading branch information
slashexx committed Nov 2, 2024
1 parent 4d1bcf4 commit ade185c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion backend/api-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
)
Expand Down Expand Up @@ -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))
}
4 changes: 2 additions & 2 deletions backend/code-execution-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit ade185c

Please sign in to comment.