https://github.com/peter-szrnka/mini-http-server
Java based HTTP/HTTPS web server for local Javascript web development.
https://github.com/peter-szrnka/mini-http-server
angularjs https-server java javascript pwa-apps
Last synced: 6 months ago
JSON representation
Java based HTTP/HTTPS web server for local Javascript web development.
- Host: GitHub
- URL: https://github.com/peter-szrnka/mini-http-server
- Owner: peter-szrnka
- License: apache-2.0
- Created: 2017-11-23T05:56:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-02T13:41:07.000Z (9 months ago)
- Last Synced: 2025-02-14T19:39:19.538Z (8 months ago)
- Topics: angularjs, https-server, java, javascript, pwa-apps
- Language: Java
- Homepage:
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# mini-http-server
A small, Java based HTTP/HTTPS web server. ( First I created it for myself. :) ) It's very useful for local Javascript (Angular JS, Progressive Web Apps, etc.) web development.
| Build | Code coverage | Code quality |
| ----- | ------------- | ------------ |
| [](https://github.com/szrnka-peter/mini-http-server/actions/workflows/codeql.yml) | | [](https://sonarcloud.io/summary/new_code?id=peter-szrnka_mini-http-server) [](https://sonarcloud.io/summary/new_code?id=peter-szrnka_mini-http-server) [](https://sonarcloud.io/summary/new_code?id=peter-szrnka_mini-http-server) |## Used technologies
- Java 8
- Maven
- Jetty webserver## Features
- configurable
- small
- portable (no installation required)## Install & configuration
- Download the JAR file
- Create a keystore file (for HTTPS mode)
- Create a batch file to run it, or you can download it from here.
- Download the sample config.properties file
- Open the config.properties file and customize the parameters.## Generate new keystore(with Java)
TODO
## Usage
- Start the batch file or run it from command line with
```
java -jar mini-https-server.jar
```## Settings
| Key | Description |
| ------------- | ------------- |
| server.type |[HTTP,HTTPS] |
| server.port | The port type, where the server'll run |
| www.dir | WWW directory |
| keystore.location | Keystore file location |
| keystore.password | Base64 encoded keystore password |
| truststore.location | Truststore file location (same as keystore file) |
| truststore.password | Base64 encoded truststore password |
| password.encrypttype | Encryption type (currently only base64 allowed) |