<commit_before># Test App - a simple Go webapp

### Pushing the app to Cloud Foundry

```
cf push test-app
```

### Endpoints

`/`: a simple landing page displaying the index and uptime
`/env`: displays environment variables
`/exit`: instructs the app to exit with status code 1
`/port`: returns the local port the request was received on

### Configure the app to listen on multiple ports

By providing a customer start command, you can configure the app to listen on multiple ports. The app responds the same way to each port.
```
cf push test-app -c "test-app --ports=7777,8888"
```

### Pushing the app to CF as a Docker image

Simple App is also packaged as a docker image at cloudfoundry/test-app

```bash
cf push my-test-app -o cloudfoundry/test-app
```

### To rebuild the dockerimage:

```bash
./build.sh
```

Assumes you have the go toolchain (with the ability to cross-compile to different platforms) and docker installed and pointing at your docker daemon.
<commit_msg>Gstack-ify the README<commit_after># Sample App - a simple Go webapp

### Pushing the app to Gstack

```
gk push test-app
```

### Endpoints

`/`: a simple landing page displaying the index and uptime
`/env`: displays environment variables
`/exit`: instructs the app to exit with status code 1
`/port`: returns the local port the request was received on

### Configure the app to listen on multiple ports

By providing a customer start command, you can configure the app to listen on multiple ports. The app responds the same way to each port.
```
cf push test-app -c "test-app --ports=7777,8888"
```

### Pushing the app to Gstack as a Docker image

Sample App is also packaged as a docker image at gstackio/sample-app

```bash
cf push wow-cool -o gstackio/sample-app -d <my-family-name>.gstack.io
```

<small>
→ where `<my-family-name>` is to be replaced by your own family name.
</small>

### To rebuild the dockerimage:

```bash
./build.sh
```

Assumes you have the go toolchain (with the ability to cross-compile to different platforms) and docker installed and pointing at your docker daemon.

{'fraction_non_alphanumeric': 0.09423076923076923, 'fraction_numerical': 0.008653846153846154, 'mean_word_length': 4.002403846153846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '2382412', 'n_tokens_mistral': 654, 'n_tokens_neox': 592, 'n_words': 305}