<commit_before># nxfc_base

This is the base container for the nxfc project using alpine-node 
(mhart/alpine-node).

The intention is to also provide a cloneable base application to be able to 
quickly build new services that conform to our configuration approach.

From a versioning point of view, the major and minor versions come from 
alpine-node and the patch version will come from here.

<commit_msg>need a README<commit_after># nxfc_checkout

[![Join the chat at https://gitter.im/newcrossfoodcoop/nxfc](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/newcrossfoodcoop/nxfc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Build Status](http://drone.newcrossfoodcoop.org.uk/api/badges/newcrossfoodcoop/nxfc_checkout/status.svg)](http://drone.newcrossfoodcoop.org.uk/newcrossfoodcoop/nxfc_checkout)

This repository generates a container for checkout and order services accessed
via a trusted gateway.

## Provides

* **Express** api
 * [Documentation](http://localhost:3010)
 * [RAML specification](http://localhost:3010/api.raml)

This repository generates a container that **provides** checkout and order 
services intended to be accessed through a secured gateway.

## Depends

The services depend on:

* **Mongoose** to access mongodb
* **nxfc_catalogue** to verify products in orders
* **paypal-rest-sdk** to place orders via paypal

## Quick Start

Install docker and docker-compose, then:

```
$ docker-compose build
$ docker-compose up
```

## Tests

Install the drone CLI, then:

```
$ drone exec
```
{'fraction_non_alphanumeric': 0.10512820512820513, 'fraction_numerical': 0.00641025641025641, 'mean_word_length': 5.294354838709677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '4341116', 'n_tokens_mistral': 520, 'n_tokens_neox': 489, 'n_words': 151}