<commit_before>#SpotCrime-city

[![npm version](https://badge.fury.io/js/spotcrime-city.svg)](https://badge.fury.io/js/spotcrime-city)

####Currently the [spotcrime](https://github.com/contra/spotcrime) node module will allow you to fetch `JSON` of crimes in an area with latitude and longitude.  
This `demo` wraps that functionality in a [Hapi](http://hapijs.com)  server and retrieve the `JSON` with endpoints for city and state.

##To see how it works

```javascript
npm i spotcrime-city
npm start
Go to localhost:8050/{city}/{State}
e.g localhost:8050/Baltimore/MD
```

##To use

```javascript
const scc = require('spotcrime-city');

const results = scc.getCrimesCity('Baltimore, MD');

console.log(results, results);
```

####After you start the Hapi server, you can hit endpoints of city and state to see the local crime in your area.


#License

###MIT <NAME>
<commit_msg>[readme]Updated Readme to reflect Docker container<commit_after>#SpotCrime-city

[![npm version](https://badge.fury.io/js/spotcrime-city.svg)](https://badge.fury.io/js/spotcrime-city)

####Currently the [spotcrime](https://github.com/contra/spotcrime) node module will allow you to fetch `JSON` of crimes in an area with latitude and longitude.
This `demo` wraps that functionality in a [Hapi](http://hapijs.com)  server and retrieve the `JSON` with endpoints for city and state.

##To see how it works

```javascript
npm i spotcrime-city
npm start
Go to localhost:8050/{city}/{State}
e.g localhost:8050/Baltimore/MD
```
##You can also run this in a Docker container

```bash
docker build -t spotcrime-city .
docker run -p 8050:8050 -e PORT=8050 spotcrime-city
```

##To use

```javascript
const scc = require('spotcrime-city');

const results = scc.getCrimesCity('Baltimore, MD');

console.log(results, results);
```

####After you start the Hapi server, you can hit endpoints of city and state to see the local crime in your area.


#License

###MIT <NAME>

{'fraction_non_alphanumeric': 0.13408973697782361, 'fraction_numerical': 0.01444043321299639, 'mean_word_length': 4.808383233532934, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '389579', 'n_tokens_mistral': 689, 'n_tokens_neox': 615, 'n_words': 216}