ths

command module
v0.0.0-...-2fbeba5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 5 Imported by: 0

README

TinyHS

Simple Go HTTP/HTTPS Server designed to Host Angular Applications

Description

This Go program allows you to start a simple HTTP server to host Angular web applications. It provides support for Cross-Origin Resource Sharing (CORS) and allows you to configure the hosting folder and port from the command line.

Usage

ths [options]

Options

--dir Hosting directory. (Default: current directory) --port Server port. (Default: 8080) --cors Enable CORS. (Default: disabled) --https Enable HTTPS. Requires certificates path definition. --cert Certificate File Path (for HTTPS). --key Certificate Key File Path (for HTTPS).

Examples

ths --dir=/path/to/your/angular-app --port=8000 - Starts the server on port 8000, hosting the Angular application in /path/to/your/angular-app.

Build

go build

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL