Skip to content

A Lightweight Web Server implemented in GO to serve out html, wasm, js or any other content. Additional logic can be added.

Notifications You must be signed in to change notification settings

maxng07/Lightweight-Web-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight-Web-Server /LWS

A Lightweight Web Server implemented in GO to serve out html, wasm, js or any other content including HTTP Adaptive Bit Rate streaming like Apple HLS. Additional logic can be added as needed.

LWS can be used with TED-GUI on either locally or in the Cloud, and recognises wasm and will set Content Type as "Application/WASM". As more functionality is needed, it can be added to LWS.

The design goal for LWS is to keep it simple and lightweight Web Server.

Usage

The binary and config.json must be located in the same directory. LWS binary will retrieve configuration informations from config.json and start the Web Server. External config file is used instead of flags/CLI as the design goal is to install LWS either locally where users may not be technical, or within a Centralised Server or Private Cloud to serve out simple web contents.

The essential config.json informations needed are

  1. IP Address - set this using the loopback IP address, 127.0.0.1 if used locally.
  2. TCP Port number
  3. Default Directory for the Web Server to serve out contents (html, js, wasm, images)

This is a graphical view of FireFox Web Browser accessing TED-GUI off LWS.

About

A Lightweight Web Server implemented in GO to serve out html, wasm, js or any other content. Additional logic can be added.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages