<commit_before># Firesize

## Imagemagick as a Service

Processes images on the fly using imagemagick.

[![Build Status](https://travis-ci.org/asm-products/firesize.svg?branch=master)](https://travis-ci.org/asm-products/firesize)

## Getting Started with Fig

Prerequisites:

* [Docker](https://docker.com/)
* [Fig](http://www.fig.sh/)
* [boot2docker](http://boot2docker.io/) if you're not running Linux

Create the database and run migrations:

    $ fig run web goose up

Start the app:

    $ fig up

Get the boot2docker ip if you're not on Linux:

    $ boot2docker ip

Open up [http://192.168.59.103:3000](http://192.168.59.103:3000)

## Getting Started without Fig

Prerequisites:

* [Go](https://golang.org/)
* [Node](http://nodejs.org/)
* [Postgres](http://www.postgresql.org/)
* [ImageMagick](http://www.imagemagick.org/)

Install dependencies:

    $ go get -u github.com/tools/godep \
                bitbucket.org/liamstask/goose/cmd/goose \
                github.com/codegangsta/gin

Create the database and run migrations:

    $ DATABASE_URL="dbname=firesize_development sslmode=disable" goose up

Run the server:

    $ gin

Run the asset compiler (in a separate tab/pane):<commit_msg>Fix up README to use forego<commit_after># Firesize

## Imagemagick as a Service

Processes images on the fly using imagemagick.

[![Build Status](https://travis-ci.org/asm-products/firesize.svg?branch=master)](https://travis-ci.org/asm-products/firesize)

## Getting Started with Fig

Prerequisites:

* [Docker](https://docker.com/)
* [Fig](http://www.fig.sh/)
* [boot2docker](http://boot2docker.io/) if you're not running Linux

Create the database and run migrations:

    $ fig run web goose up

Start the app:

    $ fig up

Get the boot2docker ip if you're not on Linux:

    $ boot2docker ip

Open up [http://192.168.59.103:3000](http://192.168.59.103:3000)

## Getting Started without Fig

Prerequisites:

* [Go](https://golang.org/)
* [Node](http://nodejs.org/)
* [Postgres](http://www.postgresql.org/)
* [ImageMagick](http://www.imagemagick.org/)

Install dependencies:

    $ go get -u github.com/tools/godep \
                bitbucket.org/liamstask/goose/cmd/goose \
                github.com/codegangsta/gin \
                github.com/ddollar/forego

Copy over some default env vars:

    $ cp .env.sample .env

Create the database and run migrations:

    $ forego run goose up

Run the server:

    $ gin

Run the asset compiler (in a separate tab/pane):
{'fraction_non_alphanumeric': 0.13818181818181818, 'fraction_numerical': 0.027474747474747475, 'mean_word_length': 3.2911611785095323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, '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': '2689142', 'n_tokens_mistral': 931, 'n_tokens_neox': 836, 'n_words': 208}