diff --git a/c/msys_server/Makefile b/c/msys_server/Makefile deleted file mode 100644 index f2b7e94..0000000 --- a/c/msys_server/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# Define the compiler -CC = gcc - -# Define the flags -CFLAGS = -Wall -Wextra - -# Define the library flags -LDFLAGS = -lws2_32 - -# Define the target executable -TARGET = server - -# Define the source file -SRC = webserver.c - -# Default target -all: $(TARGET) - -# Build step -$(TARGET): $(SRC) - $(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS) - -# Run the server -run: $(TARGET) - ./$(TARGET) - -# Clean step to remove the executable -clean: - rm -f $(TARGET) - -.PHONY: all run clean diff --git a/c/msys_server/webserver.c b/c/msys_server/webserver.c deleted file mode 100644 index 3482e86..0000000 --- a/c/msys_server/webserver.c +++ /dev/null @@ -1,28 +0,0 @@ -#include - -#ifdef _WIN32 -#include -#include -#pragma comment(lib, "ws2_32.lib") -#else -#include -#include -#include -#endif - -int main() { -#ifdef _WIN32 - WSADATA wsaData; - if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) { - fprintf(stderr, "WSAStartup failed.\n"); - return 1; - } -#endif - - printf("hello world"); - -#ifdef _WIN32 - WSACleanup(); -#endif - return 0; -} diff --git a/c/server/Makefile b/c/server/Makefile deleted file mode 100644 index 69da7b6..0000000 --- a/c/server/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# Define the compiler -CC = gcc - -# Define the flags -CFLAGS = -Wall -Wextra - -# Define the library flags -LDFLAGS = - -# Define the target executable -TARGET = server - -# Define the source file -SRC = webserver.c - -# Default target -all: $(TARGET) - -# Build step -$(TARGET): $(SRC) - $(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS) - -# Run the server -run: $(TARGET) - ./$(TARGET) - -# Clean step to remove the executable -clean: - rm -f $(TARGET) - -.PHONY: all run clean diff --git a/c/server/webserver.c b/c/server/webserver.c deleted file mode 100644 index 63a752c..0000000 --- a/c/server/webserver.c +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include -#include -#include -#include -#include - -int main() { return 0; } \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index dcaa8c2..0ed1099 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.8' services: go-server: build: - context: ./go + context: ./src dockerfile: Dockerfile ports: - "8001:8001" diff --git a/sandbox/.gitignore b/sandbox/.gitignore new file mode 100644 index 0000000..b40d66a --- /dev/null +++ b/sandbox/.gitignore @@ -0,0 +1,2 @@ +msys_server +server \ No newline at end of file diff --git a/go/Dockerfile b/src/Dockerfile similarity index 100% rename from go/Dockerfile rename to src/Dockerfile diff --git a/go/go.mod b/src/go.mod similarity index 100% rename from go/go.mod rename to src/go.mod diff --git a/go/go.sum b/src/go.sum similarity index 100% rename from go/go.sum rename to src/go.sum diff --git a/go/main.go b/src/main.go similarity index 100% rename from go/main.go rename to src/main.go diff --git a/go/oauthdemo.go b/src/oauthdemo.go similarity index 100% rename from go/oauthdemo.go rename to src/oauthdemo.go diff --git a/go/server_metrics.go b/src/server_metrics.go similarity index 100% rename from go/server_metrics.go rename to src/server_metrics.go