<commit_before>
# REST API development for EUDAT project

This is an attempt to have a multi-container micro-services environment
to develop REST API service on top of an iCAT iRODS server.

*WARNING*: this environemnt is in an early stage of development.
You should expect things not to work.

--

## Pre-requisites

Before starting please make sure that you have installed on your system:

* [Docker](http://docs.docker.com/) 1.9+
* [docker-compose](https://docs.docker.com/compose/) 1.5+

## Quick start

If you need to jump in as soon as possible:

```bash
# Clone repo
git clone ...
# Init services
scripts/run.sh init
# Then run the final services
scripts/run.sh
# Open the client to test code or run the API server
docker exec -it irods_iclient_1 bash
root@icl:/code#
### Develop from here!
```

## Documentation

For a more detailed explanation and some deep understanding:

* [Preparing the environment](docs/preparation.md)
* [Running the services](docs/running.md)
* [Developing](docs/client.md)
* [Admin operations](docs/admin.md)

## Versions

```
irods@rodserver:~$ apt-cache showpkg irods-icat
Package: irods-icat
Versions:
4.1.7
```
<commit_msg>In case you want to use just irods<commit_after>
# REST API development for EUDAT project

This is an attempt to have a multi-container micro-services environment
to develop REST API service on top of an iCAT iRODS server.

*WARNING*: this environemnt is in an early stage of development.
You should expect things not to work.

--

## Pre-requisites

Before starting please make sure that you have installed on your system:

* [Docker](http://docs.docker.com/) 1.9+
* [docker-compose](https://docs.docker.com/compose/) 1.5+

## Quick start

If you need to jump in as soon as possible:

```bash
# Clone repo
git clone ...
# Init services
scripts/run.sh init
# Then run the final services
scripts/run.sh
# Open the client to test code or run the API server
docker exec -it irods_iclient_1 bash
root@icl:/code#
### Develop from here!
```

## Enable only irods server

Note: if you want to use normal irods instead of B2safe service,
change the image name inside `docker-compose.yml`.

Then:

```bash
# Clone repo
git clone ...
# Init services
scripts/run.sh init
# Bring up only irods and postgres
docker-compose up -d icat
```

## Documentation

For a more detailed explanation and some deep understanding:

* [Preparing the environment](docs/preparation.md)
* [Running the services](docs/running.md)
* [Developing](docs/client.md)
* [Admin operations](docs/admin.md)

## Versions

```
irods@rodserver:~$ apt-cache showpkg irods-icat
Package: irods-icat
Versions:
4.1.7
```

{'fraction_non_alphanumeric': 0.10482339536650209, 'fraction_numerical': 0.006456513482719331, 'mean_word_length': 4.226190476190476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645952', 'n_tokens_mistral': 885, 'n_tokens_neox': 849, 'n_words': 325}