<commit_before>[![Code Climate](https://codeclimate.com/github/CoastDigitalGroup/subengine/badges/gpa.svg)](https://codeclimate.com/github/CoastDigitalGroup/subengine)
[![security](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master.svg)](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master)

# CoastDigitalGroup - Subscription Engine

The main authetication and subscription engine for all CoastDigitalGroup's apps open sourced.

===== Step 1: Required in gemfile
* For Development - Remote Github - gem 'cdgsubengine', git: 'http://github.com/CoastDigitalGroup/cdg-subengine.git'
* For Production - Local Folder  - gem 'cdgsubengine', path: 'cdgsubengine' Download cdg-subengine into root foler.

===== Step 2: Add below line to load requried file to the top of routes file. (routes.rb)
require "cdgsubengine/constraints/subdomain_required"  

===== Step 3: Add contraints to routes that requires multitenancy function between the two lines below . (routes.rb)
constraints(Cdgsubengine::Constraints::SubdomainRequired) do  

end

===== Step 4: Copy below line insert at the bottom of the routes file. (routes.rb)
mount Cdgsubengine::Engine, :at => '/'  



------

===== Security and Login
* Uses Warden for Authetication
* Authetication through Subdomain

===== Account Data Management
* Sub-domain Restriction
* Sub-domain Validation
* Separated Account Data

===== User UI and Interaction
* Gravatar Support

==== InProgress

Stripe Plan & Payment System
* Stripe Payment Integration
* Plan/Subscription Stripe Integration
* Plan Switching & Management

==== Licence and Terms of Use

This project rocks and uses MIT-LICENSE and is open sourced. 

Notice: Some major changes can break applications and we cannot be held liable. Under production, load the engine locally within the root of your project instead of using github repository.<commit_msg>Adjustments to readme headings. Instructions need still updating.<commit_after>[![Code Climate](https://codeclimate.com/github/CoastDigitalGroup/subengine/badges/gpa.svg)](https://codeclimate.com/github/CoastDigitalGroup/subengine)
[![security](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master.svg)](https://hakiri.io/github/CoastDigitalGroup/cdg-subengine/master)

# CoastDigitalGroup - Subscription Engine

The main authetication and subscription engine for all CoastDigitalGroup's apps open sourced.

#### Step 1: Required in gemfile
* For Development - Remote Github - gem 'cdgsubengine', git: 'http://github.com/CoastDigitalGroup/cdg-subengine.git'
* For Production - Local Folder  - gem 'cdgsubengine', path: 'cdgsubengine' Download cdg-subengine into root foler.

#### Step 2: Add below line to load requried file to the top of routes file. (routes.rb)
require "cdgsubengine/constraints/subdomain_required"  

#### Step 3: Add contraints to routes that requires multitenancy function between the two lines below . (routes.rb)
constraints(Cdgsubengine::Constraints::SubdomainRequired) do  

end

#### Step 4: Copy below line insert at the bottom of the routes file. (routes.rb)
mount Cdgsubengine::Engine, :at => '/'  


##### Security and Login
* Uses Warden for Authetication
* Authetication through Subdomain

##### Account Data Management
* Sub-domain Restriction
* Sub-domain Validation
* Separated Account Data

##### User UI and Interaction
* Gravatar Support

#### InProgress

Devise Implementation
* Registration w/ Confirmation
* Forget Password Reset

Stripe Plan & Payment System
* Stripe Payment Integration
* Plan/Subscription Stripe Integration
* Plan Switching & Management

==== Licence and Terms of Use

This project rocks and uses MIT-LICENSE and is open sourced. 

Notice: Some major changes can break applications and we cannot be held liable. Under production, load the engine locally within the root of your project instead of using github repository.
{'fraction_non_alphanumeric': 0.0983733539891557, 'fraction_numerical': 0.0020655822359927703, 'mean_word_length': 5.1394611727416795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4749368', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1061, 'n_words': 382}