<commit_before># Texas Choropleth

Dependencies:

* Python 2.7
* npm

## Quickstart

If you are just are interesting in taking this project for a test drive. 

1. Install [Docker](http://docker.com)
2. Install [fig](http://fig.sh)
3. Create `<project root>/secrets.json` with the following.

    ```json
    {
      "SECRET_KEY": "your-super-secret-key-here"
    }
    ```

3. Run

    ```sh
    $ fig up -d
    ```
4. Run 

    ```sh
    $ fig run --rm web fab build_dev
    ```
    This will pull down the MySQL Docker image and the Python docker image. Then it will build the application image from the Python image and execute `./manage.py runserver`

5. Run 

    ```sh
    $ fig run --rm web fab manage:createsuperuser
    ```

6. Navigate to `<dockerhost>:8000` and start using the app.

## Host your own
### Installation

__Note__: Configuring the web server and database is outside scope of the following instructions.

1. Clone the repository

    ```sh
    $ git clone https://github.com/unt-libraries/texas-choropleth.git
    ```

2. Create a virtualenv

    ```sh
    $ virtualenv ENV
    ```

3. Activate the virtualenv

    ```sh
   (ENV)$ source ENV/bin/activate
    ```
4. Install the project dependencies
<commit_msg>Minor updates to the Quickstart section.<commit_after># Texas Choropleth

Dependencies:

* Python 2.7
* npm

## Quickstart

If you are just are interesting in taking this project for a test drive. 

1. Install [Docker](http://docker.com)
2. Install [fig](http://fig.sh)

3. Clone the repository and enter the project directory and touch `secrets.json`
 
    ```sh
    $ git clone https://github.com/unt-libraries/texas-choropleth.git
    $ cd texas-choropleth
    $ touch secrets.json
    ```
4. Add the following to `secrets.json`

    ```json
    {
      "SECRET_KEY": "your-super-secret-key-here"
    }
    ```

5. Run

    ```sh
    $ fig up -d
    ```
6. Run 

    ```sh
    $ fig run --rm web fab build_dev
    ```
    This will pull down the MySQL Docker image and the Python Docker image. Then it will build the application image from the Python image and execute `./manage.py runserver`

7. Run 

    ```sh
    $ fig run --rm web fab manage:createsuperuser
    ```

8. Navigate to `<dockerhost>:8000` and start using the app.

## Host your own
### Installation

__Note__: Configuring the web server and database is outside scope of the following instructions.

1. Clone the repository

    ```sh
    $ git clone https://github.com/unt-libraries/texas-choropleth.git
    ```

2. Create a virtualenv

    ```sh
    $ virtualenv ENV
    ```

3. Activate the virtualenv

    ```sh
   (ENV)$ source ENV/bin/activate
    ```
4. Install the project dependencies

{'fraction_non_alphanumeric': 0.11300481659874027, 'fraction_numerical': 0.012967765839199704, 'mean_word_length': 2.7241379310344827, 'pattern_counts': {'":': 2, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 3, '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': '7403007', 'n_tokens_mistral': 887, 'n_tokens_neox': 837, 'n_words': 314}