<commit_before># Web Server (Flask)
Using Raspberry PI a web server can be setup to host a site. Using this site Raspberry PI can be controlled to do many things. For example, a home automation site can be set to control lights, outlets and monitor weather, time etc. information.
## Installation
```
pip install flask
```

## Example
Create a python file `app.py` with the following code:
```python
from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return 'Hi!'

if __name__ == '__main__':
    app.run(host='0.0.0.0')
```
Run with `python app.py` to Initialize web server.

Route your browser to `0.0.0.0:50000` to see the message. Alternatively use your IP adress and navigate tp `ip.address:5000` to see the web page. This address should also be accessible to any other device in the same network.
<commit_msg>Add deployment information to Flask web server.<commit_after># Web Server (Flask)
Using Raspberry PI a web server can be setup to host a site. Using this site Raspberry PI can be controlled to do many things. For example, a home automation site can be set to control lights, outlets and monitor weather, time etc. information.
## Installation
```
pip install flask
```

## Example
Create a python file `app.py` with the following code:
```python
from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return 'Hi!'

if __name__ == '__main__':
    app.run(host='0.0.0.0')
```
Run with `python app.py` to Initialize web server.

Route your browser to `0.0.0.0:50000` to see the message. Alternatively use your IP adress and navigate tp `ip.address:5000` to see the web page. This address should also be accessible to any other device in the same network.


## Deployment
[Flask Deployment Options](http://flask.pocoo.org/docs/0.10/deploying/#deployment-options)

{'fraction_non_alphanumeric': 0.09786768726079825, 'fraction_numerical': 0.020229633679606344, 'mean_word_length': 4.213675213675214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '220963', 'n_tokens_mistral': 567, 'n_tokens_neox': 529, 'n_words': 256}