Sha256: 35984f39e9061bd3abe8e4cc88159e6a8b6446fa7277e7c9f98183d71e1eb686

Contents?: true

Size: 1.54 KB

Versions: 5

Compression:

Stored size: 1.54 KB

Contents

# SocialNetworking

Server and client components for social networking functionality.

## Assumptions

This engine expects there to be a Devise-like API available, and an
authenticatable `Participant` class stored in a `participants` table.

## Installation

Add to your `Gemfile`

    gem 'social_networking', git: 'git://github.com/NU-CBITS/social_networking.git'

Then

    bundle install

Add the migrations and run them

    rake social_networking:install:migrations db:migrate

Install PhantomJS

    Download: http://phantomjs.org/download.html
    Add the unzipped /bin folder to your $PATH:
    ---
    export PHANTOM_JS=$HOME_DIR/tools/phantomjs-1.9.7-linux-x86_64/bin/
    PATH=$PATH:$PHANTOM_JS
    ---

## Usage

Mount the engine in `config/routes.rb`

    mount SocialNetworking::Engine, at: "social_networking"

Include the JavaScript in your 'engine' manifest

    //= require social_networking

## Run Ruby specs

Create the database

    rake app:db:create app:db:migrate

Run the specs

    rake spec

## Run JavaScript specs

    RAILS_ENV=test rake js_spec

## Run Ruby linter

    rake rb_lint

## Run JSHint

    rake jshint

## Development

Note that when updating Angular, it is necessary to update
`spec/javascripts/helpers/angular-mocks.js`.

## Publishing to RubyGems

Build the `social_networking` gem

```console
gem build social_networking.gemspec
```

Publish to [rubygems.org](https://rubygems.org)

```console
gem push social_networking-x.x.x.gem
```

View the published `social_networking` gem [here](https://rubygems.org/gems/social_networking)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
social_networking-0.13.3 README.md
social_networking-0.13.2 README.md
social_networking-0.13.1 README.md
social_networking-0.13.0 README.md
social_networking-0.12.0 README.md