Skip to content

andrewlee302/static-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

A simple server for static html files

Features

  • Cached file, a file is visited faster after the first time because of loading to memory.
  • Dynamic loading, when a static file changes, the server will reload it without restarting.
  • Check and update the website periodically.
  • Delete the cache entry if resouce is checked to be deleted.

Usage

Args: [port] [rootDir]
Port should be a number, default value is 80.
RootDir should be an existed and absolute dir, default value is the working dir.

TODO

  1. Data consistency.
  2. Checking all files periodically is too much work.
  3. Support the declaration of excluding folders, and forbidden suffixes.

About

A light-weighted and high concurrency server for static html files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages