<commit_before>play application for hosting an open register

[![Build Status](https://travis-ci.org/openregister/register.svg)](https://travis-ci.org/openregister/register)


## Pre-requisites

* Java 8<br>
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

* Simple Build Tool > 0.13.5<br>
http://www.scala-sbt.org/release/tutorial/Setup.html

* Postgres 9.4.x<br>
http://www.postgresql.org/download/<br>
Create the test and production databases<br>
`createdb openregister`<br>
`createdb testopenregister`

* Mongodb 2.6.x<br>
http://docs.mongodb.org/manual/installation/    

## Test

To compile and run all tests:<br>
`sbt test`


## Run

Start the application:<br>
`sbt run`<br>

Access the application at<br>
[`http://localhost:9000`](http://localhost:9000)

Load some data into the application. For example the list of schools<br>
[`http://localhost:9000/load?url=https://raw.githubusercontent.com/openregister/school.register/master/data/School/schools.tsv`](http://localhost:9000/load?url=https://raw.githubusercontent.com/openregister/school.register/master/data/School/schools.tsv)<commit_msg>Updated documentation to match the new data load ui<commit_after>play application for hosting an open register

[![Build Status](https://travis-ci.org/openregister/register.svg)](https://travis-ci.org/openregister/register)


## Pre-requisites

* Java 8<br>
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

* Simple Build Tool > 0.13.5<br>
http://www.scala-sbt.org/release/tutorial/Setup.html

* Postgres 9.4.x<br>
http://www.postgresql.org/download/<br>
Create the test and production databases<br>
`createdb openregister`<br>
`createdb testopenregister`

* Mongodb 2.6.x<br>
http://docs.mongodb.org/manual/installation/    

## Test

To compile and run all tests:<br>
`sbt test`


## Run

Start the application:<br>
`sbt run`<br>

Access the application at<br>
[`http://localhost:9000`](http://localhost:9000)

Load some data into the application. For example the list of schools<br>
Go to [`http://localhost:9000/load`](http://localhost:9000/load)<br> 
And put https://raw.githubusercontent.com/openregister/school.register/master/data/School/schools.tsv in the input field

{'fraction_non_alphanumeric': 0.1514882274544647, 'fraction_numerical': 0.029320302087960905, 'mean_word_length': 5.0864864864864865, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 30, 'https://': 7, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '388201', 'n_tokens_mistral': 833, 'n_tokens_neox': 775, 'n_words': 150}