<commit_before>---
layout: default
---
Getting started with Cougar
===========================

This guide is intended as a 5 minute guide to getting a service up and running with Cougar. Cougar has a rich set of features which we couldn't hope to cover in such a manner, so for other guides and references, please check out our [documentation hub](documentation.html).

We're going to create an initial Cougar based project, define and implement an operation on a service interface, run it and call it.

Basic project structure
-----------------------

Creating the basic project structure and config can be a little tedious, so we're going to use the cougar archetype to generate the basic layout:

```
C:\>mvn archetype:generate -DarchetypeGroupId=com.betfair.cougar.archetypes -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots  -DarchetypeArtifactId=simple-service-archetype -DarchetypeVersion=3.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from [com.betfair.cougar.archetypes:simple-service-archetype:3.0-SNAPSHOT] found in catalog local
Define value for property 'groupId': : wibble
Define value for property 'artifactId': : wibble
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  wibble: :
Confirm properties configuration:
groupId: wibble
artifactId: wibble
version: 1.0-SNAPSHOT
package: wibble<commit_msg>Small text update<commit_after>---
layout: default
---
Getting started with Cougar
===========================

This guide is intended as a 5 minute guide to getting a service up and running with Cougar. Cougar has a rich set of features which we couldn't hope to cover in such a manner, so for other guides and references, please check out our [documentation hub](documentation.html).

We're going to create an initial Cougar based project, define and implement an operation on a service interface, run it and call it.

Basic project structure
-----------------------

Creating the basic project structure and config can be a little tedious, so we're going to use on of the provided cougar archetypes to generate the basic layout:

```
C:\>mvn archetype:generate -DarchetypeGroupId=com.betfair.cougar.archetypes -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots  -DarchetypeArtifactId=simple-service-archetype -DarchetypeVersion=3.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from [com.betfair.cougar.archetypes:simple-service-archetype:3.0-SNAPSHOT] found in catalog local
Define value for property 'groupId': : wibble
Define value for property 'artifactId': : wibble
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  wibble: :
Confirm properties configuration:
groupId: wibble
artifactId: wibble
version: 1.0-SNAPSHOT
package: wibble
{'fraction_non_alphanumeric': 0.1872146118721461, 'fraction_numerical': 0.008117706747843734, 'mean_word_length': 3.3234649122807016, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '66689', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1083, 'n_words': 394}