Skip to content

devvspaces/golang_web_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

Golang Lightweight Static Web Server

Status GitHub Issues GitHub Pull Requests License



📝 Table of Contents

🧐 About

This is a simple and ligtweight website server with Golang. Golang is a very robust and fast programming language. We will build this with only Golang no extra dependencies. On linux the build size is 6.0M.

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Golang runtime is needed to be installed to get this project running.

Installing

Install Golang by visiting Go.dev to install Golang on your machine. The installation binaries are available for any Operating System (Windows, Mac, Linux, etc.).

Just clone the project

git clone https://github.com/devvspaces/golang_web_server

🎈 Usage

The default root directory for static files is the website directory. You can add more files there as you want.

To run the server

cd golang_web_server
go run main.go

Visit your localhost http://localhost:8000 to view the website. By defualt this uses your index.html file in the root folder as the index.

⛏️ Built Using

  • Golang - Programming Language

✍️ Authors

See also the list of contributors who participated in this project.

🎉 Acknowledgements

  • Hat tip to anyone whose code was used
  • Inspiration
  • References
  • Golang Documentation

About

This is a simple and ligtweight website server with Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published