https://github.com/profburke/webserving-made-easy
A list of various ways to easily serve files via HTTP.
https://github.com/profburke/webserving-made-easy
development-tool development-tools fileserver http
Last synced: 10 months ago
JSON representation
A list of various ways to easily serve files via HTTP.
- Host: GitHub
- URL: https://github.com/profburke/webserving-made-easy
- Owner: profburke
- Created: 2020-06-20T18:57:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T19:57:14.000Z (over 5 years ago)
- Last Synced: 2025-01-28T04:28:24.211Z (12 months ago)
- Topics: development-tool, development-tools, fileserver, http
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Easy Webserving
Sometimes you want a dirt-simple way of serving one or more files via HTTP. You may be in the middle of developing some software and just want to easily test downloading a file, or often it's the easiest way to copy a file from your local machine, etc.
Below are multiple ways of doing so, separated by language.
I encourage you to open a [pull request](https://github.com/profburke/webserving-made-easy/pulls) or [issue](https://github.com/profburke/webserving-made-easy/issues) to add to this list!
- [Go](#go)
- [Python 2](#python2)
- [Python 3](#python3)
- [Ruby](#ruby)
- [Rust](#rust)
- go exec 'http.ListenAndServe(`:8080`, http.FileServer(http.Dir(`.`)))'
- python -m SimpleHTTPServer <*port#*>
> supports GET, HEAD
> default port 8000
- [woof.py](https://gist.github.com/robcowie/372849)
> easy, one-time file servring (i.e. quits after file is downloaded)
> when run will display URL where file is served
### Python 3
- python3 -m http.server <*port#*>
> default port 8000
- ruby -run -e httpd . <-p *port#*>
> default port 880
- [microserver](https://github.com/robertohuertasm/microserver)
> cargo install microserver
> From the command line: microserver <*path/to/folder*>
> Will serve single single page applications