<commit_before># Arctic Connect User Portal

This app provides a centralized location to access all the Arctic Connect services. It also provides a central authentication service that connects to SAML2 authentication providers.

It can be used for user access control or user tracking.

## Requirements

* Ruby 2.2
* Rails 4.2

## Configuration

Configuration is managed through environment variables, as this app is deployable to cloud platforms like Heroku or Dokku.

## Database

Use `rake` to initialize the testing database:

    $ rake db:create db:migrate

## Tests

No tests yet; will be rspec based when they are ready.

## Deployment

To be added later.

## License<commit_msg>Update README with deployment instructions<commit_after># Arctic Connect User Portal

This app provides a centralized location to access all the Arctic Connect services.

## Requirements

* Ruby 2.2
* Rails 4.2

## Configuration

Configuration is managed through environment variables, as this app is deployable to cloud platforms like Heroku or Dokku.

## Database

Use `rake` to initialize the testing database:

    $ rake db:create db:migrate

## Deployment

Deployment is currently set up for an instance of [Dokku](https://github.com/progrium/dokku) running on the [Cybera Rapid Access Cloud](http://www.cybera.ca/projects/cloud-resources/rapid-access-cloud/). When deploying, you will need to configure the following environment variables:

    ADMIN_PASS
    HTTP Auth password for /admin/map_notes.

    ADMIN_USER
    HTTP Auth username for /admin/map_notes.

    DATABASE_URL
    URL to postgres database with username, password, host, port, and database name.

    ERRBIT_HOST
    Hostname for the Errbit instance for error collection. Do not include protocol.

    ERRBIT_KEY
    Errbit app key.

    ERRBIT_PORT
    Port for the Errbit service.

    FACEBOOK_KEY
    The App Id for the Facebook App configured for OAuth login.

    FACEBOOK_SECRET
    The App Secret for the Facebook App configured for OAuth login.

    GITLAB_KEY
    The API Key for OAuth login via GeoSensorWeb Lab's Gitlab instance.

    GITLAB_SECRET
    The API Secret Key for OAuth login via GeoSensorWeb Lab's Gitlab instance.

    GOOGLE_CLIENT_ID
    The Google App ID for OAuth login.

    GOOGLE_CLIENT_SECRET
    The Google App Secret for OAuth login.

    RACK_ENV
    Environment for Rack. "production" is typical.

    REDIS_NAMESPACE
    Namespace for Redis cache. Should be unique.

    REDIS_URL
    URL to Redis instance. Can include username, password, host, database id.

    SECRET_KEY_BASE
    Key base for Rails session crypto.

    TWITTER_KEY
    The Twitter App Key for OAuth login.

    TWITTER_SECRET
    The Twitter App Secret for OAuth login.

It should be possible to deploy the application to Heroku because of Heroku's similarity to Dokku.

## License
{'fraction_non_alphanumeric': 0.045199719691660825, 'fraction_numerical': 0.003153468815697267, 'mean_word_length': 3.538950715421304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1250789', 'n_tokens_mistral': 829, 'n_tokens_neox': 776, 'n_words': 360}