Skip to content

GOSERVER is a simple web application built using the Gin framework in Go. This project demonstrates how to set up a basic server that serves static HTML files.

Notifications You must be signed in to change notification settings

Devansh-Bhagania/Golang-HTTP-server-using-GIN-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOLANG HTTP SERVER

This is a simple Go server using the Gin framework. It serves two HTML files: home.html and about.html.

Prerequisites

Project Structure

myapp/ ├── main.go ├── templates/ │ ├── home.html │ └── about.html

Getting Started

Step 1: Initialize the project

mkdir myapp
cd myapp

go mod init myapp

Step 2: install dependencies:

go get -u github.com/gin-gonic/gin
go mod tidy

Step 3: run the server:

go run main.go

About

GOSERVER is a simple web application built using the Gin framework in Go. This project demonstrates how to set up a basic server that serves static HTML files.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published