Categorygithub.com/sig00rd/simpleserver
repositorypackage
1.0.2
Repository: https://github.com/sig00rd/simpleserver.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Recruitment task from a certain company

Simple CLI tool to start a server serving static html file

Run tests

In the project root folder:

go test ./...

or if you're using richgo:

richgo test ./...

for verbose output, add '-v' option:

[rich]go test -v ./...

Build app

cd into project root folder, then:

go build simpleserver.go

Run app

With app built: ./simpleserver version to display info about app version

./simpleserver help to display help

./simpleserver run --file <path> to start HTTP server serving html file found under specified path

Accessing served file

By default, the specified file is being served on port 8080