<commit_before># micro-launcher

Microservices launcher for .NET applications based on paket

[![wercker status](https://app.wercker.com/status/56ebdc3eee27ca9a1525ff478f6c7ac8/s/master "wercker status")](https://app.wercker.com/project/bykey/56ebdc3eee27ca9a1525ff478f6c7ac8)

## Getting started

1. Clone repository
2. Copy `paket.dependencies.sample` to `paket.dependencies`
3. Replace sample dependencies with your services in `paket.dependencies` file
4. Execute `run.sh`

## Documentation

micro-launcher is based on [paket] (https://github.com/fsprojects/Paket) - package dependency manager for .NET and mono and its intent is to stay as minimal and plaform agnostic as possible (support *nix and Windows)

### Arguments:
- --exclude or -e <service-name> to exclude service from running (example: ```./run.sh --exclude hello-world-fsharp```)
- --include or -i <service-name> to run specific services (example: ```./run.sh --include hello-world-nodejs```)

### How it works

1. Restores packages
2. Iterates through packages and runs `run.sh`
3. `stop.sh` stops service matching a pattern

paket.dependencies file is ignored so that this repo can be cloned and updated without overriding your local dependencies file

### Making your service micro-launcher ready

Create `run.sh` script in root folder that is resposible for starting service. Here are few examples of starting an application:
```bash
start bin/*.exe # starting .net application from shell
```
```bash
start cmd //c run.bat
echo "Warm up application"
curl -vo nul http://localhost:8080/
# cat run.bat
# SET current_dir=%~dp0
# "C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:"%current_dir:~0,-1%" /port:8080
```
```bash
powershell -ExecutionPolicy ByPass -File deploy.ps1
```
[hello-world] (https://github.com/uldissturms/hello-world) repo will contain various applications to demonstarate ways of starting a micro service
<commit_msg>Document parallel argument usage<commit_after># micro-launcher

Microservices launcher for .NET applications based on paket

[![wercker status](https://app.wercker.com/status/56ebdc3eee27ca9a1525ff478f6c7ac8/s/master "wercker status")](https://app.wercker.com/project/bykey/56ebdc3eee27ca9a1525ff478f6c7ac8)

## Getting started

1. Clone repository
2. Copy `paket.dependencies.sample` to `paket.dependencies`
3. Replace sample dependencies with your services in `paket.dependencies` file
4. Execute `run.sh`

## Documentation

micro-launcher is based on [paket] (https://github.com/fsprojects/Paket) - package dependency manager for .NET and mono and its intent is to stay as minimal and plaform agnostic as possible (support *nix and Windows)

### Arguments:
- --exclude or -e <service-name> to exclude service from running (example: ```./run.sh --exclude hello-world-fsharp```)
- --include or -i <service-name> to run specific services (example: ```./run.sh --include hello-world-nodejs```)
- --parallel or -p <threads> to launch services in parallel (example: ```./run.sh --parallel 10```)

### How it works

1. Restores packages
2. Iterates through packages and runs `run.sh`
3. `stop.sh` stops service matching a pattern

paket.dependencies file is ignored so that this repo can be cloned and updated without overriding your local dependencies file

### Making your service micro-launcher ready

Create `run.sh` script in root folder that is resposible for starting service. Here are few examples of starting an application:
```bash
start bin/*.exe # starting .net application from shell
```
```bash
start cmd //c run.bat
echo "Warm up application"
curl -vo nul http://localhost:8080/
# cat run.bat
# SET current_dir=%~dp0
# "C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:"%current_dir:~0,-1%" /port:8080
```
```bash
powershell -ExecutionPolicy ByPass -File deploy.ps1
```
[hello-world] (https://github.com/uldissturms/hello-world) repo will contain various applications to demonstarate ways of starting a micro service

{'fraction_non_alphanumeric': 0.11636731596256009, 'fraction_numerical': 0.02732102200860106, 'mean_word_length': 4.722141823444284, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5148536', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1200, 'n_words': 436}