--- /dev/null
+golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo=
+golang.org/x/net v0.51.0/go.mod h1:aamm+2QF5ogm02fjy5Bb7CQ0WMt1/WVM7FtyaTLlA9Y=
+golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
+golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
--- /dev/null
+package main
+
+import (
+ "flag"
+ "fmt"
+ "log"
+ "os"
+)
+
+func main() {
+ // Getting the parameters
+ paramPort := flag.Int("port", 8000, "Specify the port you want to host this server on. By default: 8000")
+ paramBinbLocation := flag.String("binb_location", "", "Specify the folder containing the app.js for the binb version you are running")
+ paramSongsLocation := flag.String("song_location", "", "Specify the /public/songs folder where the m4a preview files should be saved.")
+ paramRedisLocation := flag.String("redis_location", "", "Specify the location of the redis instance to open, probably a localhost place.")
+ paramContainerName := flag.String("container_name", "", "Specify the name of the container image that would have to be started / restarted")
+
+ flag.Parse()
+
+ // Setting up logging
+ logFile, err := os.OpenFile("./log/sm.log", os.O_APPEND | os.O_RDWR, 0664)
+ if err != nil {
+ fmt.Println("While setting up the server, it could not open the main log file at log/sm.log.", err)
+ panic("Failed to open log file.");
+ }
+
+ defer logFile.Close()
+
+ mainLogger := log.New(logFile, "", log.LstdFlags | log.Lshortfile | log.Ldate | log.Ltime)
+ mainLogger.Println("=== Logging has begun. === ")
+ mainLogger.Println("Given port:", paramPort)
+ mainLogger.Println("Given binb_location:", paramBinbLocation)
+ mainLogger.Println("Given songs_location:", paramSongsLocation)
+ mainLogger.Println("Given redis_location:", paramRedisLocation)
+ mainLogger.Println("Given container_name:", paramContainerName)
+
+
+ // Setting up the routing
+
+}