This project sets up a simple HTTP server using Go that responds to two endpoints: / and /hello.
Ensure you have Docker installed on your machine.
-
Build the Docker image:
docker build -t hello-world-golang . -
Run the container:
docker run -p 8080:8080 git remote add origin https://github.com/0xsuid/hello-world-golang.git
-
The server will start on port
8080.
- Navigate to the project directory.
- Build and run the Go application:
go build -o hello_world ./src/main.go ./hello_world
- The server will start on port
8080.
/: Returns "This is a simple me0W website!\n"/hello: Returns "Hello World!\n"
Dockerfile: Docker configuration to build the Go application.src/main.go: The main source code for the HTTP server.