https://github.com/shinyaigeek/dserve
[WIP]Serve your local file on HTTP right away ⚡️
https://github.com/shinyaigeek/dserve
deno file http server
Last synced: 9 months ago
JSON representation
[WIP]Serve your local file on HTTP right away ⚡️
- Host: GitHub
- URL: https://github.com/shinyaigeek/dserve
- Owner: Shinyaigeek
- Created: 2021-09-01T07:22:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T08:47:41.000Z (over 4 years ago)
- Last Synced: 2025-02-09T01:15:21.948Z (about 1 year ago)
- Topics: deno, file, http, server
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dserve ⚡️
**a CLI tool to serve files and dirs on HTTP(s) inspired by miniserve**
you can install dserve, and immediately you can host your local files on
HTTP(s). !
## How to use
### install
```bash
$ deno run -A --unstable https://deno.land/x/dserve/src/install.ts
```
### serve current directory
```bash
$ dserve .
```
### serve with TLS
```bash
$ dserve --tls-cert {your tls cert path} --tls-key {your tls key path} .
```
### help
```bash
$ dserve --help
```
## Feature ✨
- easy to use
- if you installed deno on your machine, you can install this with one command
- Serve with Correct MIME type
- show index of files in directory
- serve with TLS
## RoadMap for v1.0.0 🚚
- [ ] File Uploading
- [ ] download with zip
- [ ] Basic Auth
- [ ] Scan with QR Code
## Usage
```bash
$ dserve --help
dserve@0.0.1
Developed by Shinobu Hayashi/Shinyaigeek
Usage
dserve [Flags] [Options] [--] [Path]
Flags
-h --help [Bool]
Show this help message
Options
-p, --port [Number]
Port number to listen to. default 3030
-t, --title [String]
Title of the page. default "dserve"
-i, --index [String]
Index file to serve. optional
--tls-cert [String]
TLS certificate file. optional. if both of --tls-key and --tls-cert are specified, dserve will use TLS.
--tls-key [String]
TLS key file. optional. if both of --tls-key and --tls-cert are specified, dserve will use TLS.
Args
Path to serve. default "."
```