Skip to content

335is/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server

Web server that demonstrates REST API, configuration, logging, metrics, middleware, and panic handling. See main.go or the examples\client folder for how it works.

Build

go build -o server

Configuration

The configuration can be specified using a config.yml file, environment variables, or command line arguments.

---
http:
   address: http://localhost
   port: 2000
   content: content
export HTTP_ADDRESS=http://localhost
export HTTP_PORT=2000
export HTTP_CONTENT=content

Run Server

./server http_address=http://localhost http_port=1111 http_content=content

Routes

About

web server that demonstrates configuration, logging, REST API, OAuth2, metrics, other cool features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages