An open API service indexing awesome lists of open source software.

https://github.com/ediwang/jerry

Jerry Mouse, a static web server based on ASP.NET Core
https://github.com/ediwang/jerry

aspnet-core docker

Last synced: 4 months ago
JSON representation

Jerry Mouse, a static web server based on ASP.NET Core

Awesome Lists containing this project

README

          

# Jerry

Jerry, a static web server based on ASP.NET Core

## Install

You can choose either method to install Jerry

### Compiled Binaries (AOT)

Download executable for your OS platform in [Release](https://github.com/EdiWang/Jerry/releases), without installing .NET runtime.

### .NET Tool

Requires [.NET 10.0 SDK](https://dot.net)

```powershell
dotnet tool install -g Jerry
```

### Docker

```
docker pull ediwang/jerry
```

## Usage

### As .NET Tool or Standalone Executable

```
Options:
-d, --directory Web content directory. [default: .]
-p, --port HTTP server port. [default: 8080]
--use-https Use HTTPS [default: False]
--directory-browser Directory browser [default: False]
-v, --verbose Verbose log [default: False]
--version Show version information
-?, -h, --help Show help and usage information
```

### Examples

Serve current directory on port 8080

```powershell
jerry -d .
```

Serve `E:\Workspace\wwwtest` on port 8080 with directory browser

```powershell
jerry -d "E:\Workspace\wwwtest" --directory-browser
```

![image](https://github.com/EdiWang/Jerry/assets/3304703/e0402373-a897-4170-9d5d-bdc6caf75d03)

### As Docker Container

```
docker run -p 8080:8080 -v /some/wonderful/wwwtest:/wwwtest ediwang/jerry -d /wwwtest
```