serve

A simple http server

serve

A simple file server

  • Compression
  • Customizable port
  • Exclude files
  • Optional listing of directories
  • CORS

Installation

TODO: Write installation instructions here

Usage

Just run the executable with the directory with the cirectory to host
serve ~/path/to/files/
add -x for compression
add -c for CORS support
add -d to NOT list directories
add -p <someport> to host the files on a specific port
add -e <filetypes> to exclude those files

Default port: 8080
A directory does not need to be specified, it will default to the current directory

E.g.: serve -x -c -p 1234 -e png,jpg,gif

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/data-niklas/serve/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

serve

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • over 2 years ago
  • April 23, 2020
License

MIT License

Links
Synced at

Sat, 21 Dec 2024 18:12:16 GMT

Languages