<commit_before># Workload Measurement Tool - Web application

[![CircleCI](https://circleci.com/gh/ministryofjustice/wmt-web/tree/main.svg?style=svg)](https://circleci.com/gh/ministryofjustice/wmt-web/tree/main)

This is the webserver application that will present the information stored in the WMT database to the end user.

It is a node.js application using the express web framework.

## Prerequisites
- Node v14 (managed using [nvm](https://github.com/creationix/nvm))
- Docker

On OSX (using [homebrew](https://brew.sh/)):

- `brew install nvm`
- Follow the instructions in the brew installer output

- Go to [Docker get started](https://www.docker.com/get-started) to install Docker

Install Node version 14
- `nvm install 14`

## Getting Started
```
docker-compose up -d<commit_msg>updated with npm intruction for local run<commit_after># Workload Measurement Tool - Web application

[![CircleCI](https://circleci.com/gh/ministryofjustice/wmt-web/tree/main.svg?style=svg)](https://circleci.com/gh/ministryofjustice/wmt-web/tree/main)

This is the webserver application that will present the information stored in the WMT database to the end user.

It is a node.js application using the express web framework.

## Prerequisites
- Node v14 (managed using [nvm](https://github.com/creationix/nvm))
- Docker

On OSX (using [homebrew](https://brew.sh/)):

- `brew install nvm`
- Follow the instructions in the brew installer output

- Go to [Docker get started](https://www.docker.com/get-started) to install Docker

Install Node version 14
- `nvm install 14`

## Getting Started Locally

Run installation for local code 
```shell
npm install 

docker-compose up -d

npm run build

npm start
{'fraction_non_alphanumeric': 0.11104548139397519, 'fraction_numerical': 0.0070880094506792675, 'mean_word_length': 4.464516129032258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '4750492', 'n_tokens_mistral': 557, 'n_tokens_neox': 517, 'n_words': 175}