Skip to content

A base server in golang for jump-starting an HTTP API endpoint microservice project.

License

Notifications You must be signed in to change notification settings

farglabs/go_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go_server

An extremely simple base server in golang for jump-starting an HTTP API endpoint microservice project. Secure, light-weight and can be built for any platform to a single executable!

At this point, all served code/data should be contained within main.go (or at least called from there). The inability to serve static HTML files (and other files) is intentional; if you want to take on that security risk, go use Apache or Nginx.

Install Instructions

First, make sure you have Go installed on your server or build machine: Go installation steps

Then just build and run!

Build:

$ go build

Run on Linux:

$ ./server

Run on Windows:

$ server.exe

Alternate Instructions

Download a prebuilt executable:

Linux pre-built executable download

Windows pre-built executable download

Download the .example.settings.ini file Rename the file to settings.ini and modify the settings as you see fit

Move the settings.ini file to the same directory as the pre-built executable

Run the executable (you may need to chmod +x the executable first if you're on Linux)

About

A base server in golang for jump-starting an HTTP API endpoint microservice project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages