<commit_before># k-http

Command-line HTTP server suitable for testing and local development to host static files with zero configuration. Written on top of ASP.NET 5 and inspired by nodejs [http-server](http://www.tugberkugurlu.com/archive/quickly-hosting-static-files-in-your-development-environment-with-node-http-server).

### Installation

- This is tested under **dnx 1.0.0-beta5-11593** from aspnetvnext MyGet feed. Make sure this is active feed before installing and using
- To install this globally, run the following command after you make sure that you have the correct dnx version active: `dnu commands install k-http --source "https://www.myget.org/F/aspnetvnext/api/v2" --source "https://nuget.org/api/v2/"`
- You should have **k-http** under your path. Run this under the desired directory to expose the static files through http;//localhost:5000
- You can override the URL using `--server-urls` command line argument: `k-http --server.urls=http://localhost:5005`

After you have it globally installed, you Can run `k-http` under the directory which needs to be hosted:

![demo-image](media/demo.PNG)

### Development

The project is based on dnx-clr-win-x86 runtime, v1.0.0-beta5-11611 from [aspnetvnext MyGet feed](https://www.myget.org/gallery/aspnetvnext).<commit_msg>updated read me<commit_after># k-http

Command-line HTTP server suitable for testing and local development to host static files with zero configuration. Written on top of ASP.NET 5 and inspired by nodejs [http-server](http://www.tugberkugurlu.com/archive/quickly-hosting-static-files-in-your-development-environment-with-node-http-server).

### Installation

- This is tested under **dnx 1.0.0-beta5-11611** from [aspnetvnext MyGet feed](https://www.myget.org/gallery/aspnetvnext). Make sure this is active feed before installing and using
- To install this globally, run the following command after you make sure that you have the correct dnx version active: `dnu commands install k-http --source "https://www.myget.org/F/aspnetvnext/api/v2" --source "https://nuget.org/api/v2/"`
- You should have **k-http** under your path. Run this under the desired directory to expose the static files through http;//localhost:5000
- You can override the URL using `--server-urls` command line argument: `k-http --server.urls=http://localhost:5005`

After you have it globally installed, you Can run `k-http` under the directory which needs to be hosted:

![demo-image](media/demo.PNG)
{'fraction_non_alphanumeric': 0.10889882161722877, 'fraction_numerical': 0.02072328321820398, 'mean_word_length': 4.458980044345898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3239378', 'n_tokens_mistral': 755, 'n_tokens_neox': 720, 'n_words': 272}