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
gem build social_networking.gemspec
Publish to rubygems.org
gem push social_networking-x.x.x.gem
View the published social_networking
gem here