Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samdphillips/raco-static-web
https://github.com/samdphillips/raco-static-web
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/samdphillips/raco-static-web
- Owner: samdphillips
- License: apache-2.0
- Created: 2021-11-02T20:46:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T01:58:47.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T03:03:44.267Z (3 months ago)
- Language: Racket
- Size: 67.4 KB
- Stars: 18
- Watchers: 4
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# raco-static-web
A little raco command to serve some files on the web. Inspired by the command
line mode of the python [http.server module](https://docs.python.org/3/library/http.server.html).![screen shot](screenshot.png)
## Usage
1. Ensure `raco` is in your `$PATH`.
2. Open terminal in directory you want to serve.
- Alternatively use the `-d` command line option to specify a directory.
3. Run `raco static-web` to serve the current directory.For help and options use `raco help static-web`.
## Changelog
### 1.1.0
Release date: 2023/01/06
- Add the `--launch` option to open a browser after starting.## 1.0.1
Release date: 2022/09/22
- Use response logging
- Support for content-encoding: gzip## 1.0.0
Release date: 2022/06/05
- Add content-type headers
- Use a non non-blank 404
- Add favicon## 0.9.9
Release date: 2021/11/03
- Initial release## Contributors:
- [Ben Knoble](https://github.com/benknoble) : original code, directory
listing, testing
- [Ryan Culpepper](https://github.com/rmculpepper): command line
- [Stephen De Gabrielle](https://github.com/spdegabrielle): docs
- [Joel Dueck](https://github.com/otherjoel): `--launch` option
- [Fred Fu](https://github.com/capfredf): docs
- [Sorawee Porncharoenwase](https://github.com/sorawee): 404 page, upstream
enhancements, response logging, gzip content encoding
- [Sam Phillips](https://github.com/samdphillips) : shepherding, packagingfile-line.png, folder-3-line.png, and folder-upload-line.png icons from the
[Remix Icon](https://github.com/Remix-Design/RemixIcon) project.## Plans
Things I might add. PRs welcome if you get to this before me.- [ ] MIME types and more icons
- [ ] split out directory listing into separate package