<commit_before># OpenShift.js

Javascript OpenShift API implementation.

It is being released on the early stages, so that people can contribute and drive the development course.

## Motivation

We at getupclud.com want to be able to provide our users with a low latency, CDN driven web console interface to our OpenShift infrastructure, and this project will provide the base fundation for that.

## Goals

The project aims to build a Javascript interface for OpenShift's RESTful API, providing an async interface with modular authentication mechanism.

## Requirements

The lib must cope with following requirements:

* Async interface - all interactions must be provided by a callbakc based  API. No blocking at all.
* Pluggable auth modules - User should be free to choose how to authenticate with OpenShift broker.
* Data centric - all data returned from broker must be easily reached from user callback functions.
* REST API driven interface - module's methods must mimic the original OpenShift's RESTful API.

## Local development

For testing and development purpose, you can use a pre-built bundle of API requests/responses.
The script `build` will make a serie of requests against your openshift broker, saving all responses inside
dir `broker/rest`. Those files can then be server by the local HTTP python server.

```
./build
./run
```

Now go to 127.0.0.1:1111

Please note you are now using a mock openshift broker, thus authentication and some POST/PUT/DELETE operations may now work as expected.

## Running from a differente domain
<commit_msg>Fix port number<commit_after># OpenShift.js

Javascript OpenShift API implementation.

It is being released on the early stages, so that people can contribute and drive the development course.

## Motivation

We at getupclud.com want to be able to provide our users with a low latency, CDN driven web console interface to our OpenShift infrastructure, and this project will provide the base fundation for that.

## Goals

The project aims to build a Javascript interface for OpenShift's RESTful API, providing an async interface with modular authentication mechanism.

## Requirements

The lib must cope with following requirements:

* Async interface - all interactions must be provided by a callbakc based  API. No blocking at all.
* Pluggable auth modules - User should be free to choose how to authenticate with OpenShift broker.
* Data centric - all data returned from broker must be easily reached from user callback functions.
* REST API driven interface - module's methods must mimic the original OpenShift's RESTful API.

## Local development

For testing and development purpose, you can use a pre-built bundle of API requests/responses.
The script `build` will make a serie of requests against your openshift broker, saving all responses inside
dir `broker/rest`. Those files can then be server by the local HTTP python server.

```
./build
./run
```

Now go to 127.0.0.1:9090

Please note you are now using a mock openshift broker, thus authentication and some POST/PUT/DELETE operations may now work as expected.

## Running from a differente domain

{'fraction_non_alphanumeric': 0.045454545454545456, 'fraction_numerical': 0.006402048655569782, 'mean_word_length': 4.397236614853195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3121782', 'n_tokens_mistral': 793, 'n_tokens_neox': 741, 'n_words': 454}