https://github.com/imrany/packer
Packer is a simple web server used to serve static contents.
https://github.com/imrany/packer
rust webserver
Last synced: 3 months ago
JSON representation
Packer is a simple web server used to serve static contents.
- Host: GitHub
- URL: https://github.com/imrany/packer
- Owner: imrany
- License: bsd-3-clause
- Created: 2024-03-23T19:31:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-16T08:49:10.000Z (about 1 year ago)
- Last Synced: 2024-04-24T05:07:39.186Z (about 1 year ago)
- Topics: rust, webserver
- Language: Rust
- Homepage: https://imrany.github.io/packer/
- Size: 5.45 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Packer is a simple web server used to serve static contents.
## Configuring Packer
Open packer folder, go to `config.json`
```json
{
"server_name":"My movie server", // specify the name of your server
"location":"C:/Users/username/Downloads", // specifies the path location of the static content you want to serve, eg "/template/web" or "C:/Users/username/web"
"listen":80 // specifies the port you want to serve on, by defaut is port 80
}
```## Usage
To run with configurations specified in `config.json`, use
```bash
packer
```To serve a contents from a folder, use
`packer serve
` example, to serve contents on the current folder, run
```bash
packer serve ./
```
to serve downloads folder, run
```bash
packer serve "C:/Downloads"
```To serve on a specified port, use
`packer --port= serve "C:/Downloads"` replace `` with a any number e.g: 3000, 80, 443 e.t.c
example
```bash
packer --port=3000 serve ./
```## Downloads
| Operating systems | Prebuilt Binaries |
| -------------------- | ---------------------------- |
| Windows 64Bit | [packer-v0.2.2-win64.zip](https://github.com/imrany/packer/releases/download/v0.2.2/packer-v0.2.2-win64.zip) |## Source code
Built from source [packer source code](https://github.com/imrany/packer/archive/refs/tags/v0.2.2.zip)