modulepackage
0.0.0-20241116211752-4bdddf8e31d9
Repository: https://github.com/afomiat/simple-web-server.git
Documentation: pkg.go.dev
# README
Simple Web Server using Go and Gin
Overview
This is a simple web server built with the Gin web framework. It provides three routes that return static responses.
Routes
-
/name
- Method: GET
- Response:Hello, I am Afomia!.
-
/hobby
- Method: GET
- Response: I love exploring new places!.
-
/dream
- Method: GET
- Response: I dream of becoming a Backend Developer!.
Getting Started
Prerequisites
- Go 1.16+ installed
- A terminal or command-line interface
Installation
-
Clone the repository:
git clone https://github.com/Afomiat/simple-web-server.git cd simple-web-server
-
Install dependencies: go mod tidy
-
Run the server: go run main.go
-
Access the routes locally at: http://localhost:8080/name http://localhost:8080/hobby http://localhost:8080/dream