LeBlanc/wecrowd-rails


License: Apache-2.0

Language: Ruby


WeCrowd

WeCrowd is a sample Rails application which shows you how to integrate with our WePay Clear™ product offering.

Examples

http://wecrowd.wepay.com

Prerequisites

  1. Install Vagrant.
  2. Install VirtualBox OR VMware + VMware Provider for Vagrant.
  3. Checkout the WeCrowd repository.

    git checkout git@github.com:wepay/wecrowd-rails.git
  4. Install the vagrant-vbguest plugin for Vagrant.

    vagrant plugin install vagrant-vbguest
  5. Move into the root of the repository and start Vagrant. This will start a VirtualBox VM, and spool up our stack, installing everything that is needed along the way and also running the initial migration.

    # For VirtualBox
    vagrant up --provider=virtualbox
    
    # For VMware Fusion (OS X)
    vagrant up --provider=vmware_fusion
    
    # For VMware Workstation (Linux/Windows)
    vagrant up --provider=vmware_workstation
  6. After several minutes you will be back at your prompt. You now need to open an SSH session to the VM.

    vagrant ssh
  7. Set the following environment variables:

    export RAILS_ENV="development"
    export WECROWD_SECRET_KEY_BASE=<value>
    export WECROWD_DATABASE_PASSWORD=<value>
    export WECROWD_CLIENT_ID=<value>
    export WECROWD_CLIENT_SECRET=<value>
    export WECROWD_ACCOUNT_ID=<value>
    export WECROWD_ACCESS_TOKEN=<value>
  8. Run the Rails server.

    cd /vagrant
    rails server
  9. Visit http://0.0.0.0:3000 in your web browser to see the app running.

Contributing

Here's the process for contributing:

  1. Fork WeCrowd to your GitHub account.
  2. Clone your GitHub copy of the repository into your local workspace.
  3. Write code, fix bugs, and add tests with 100% code coverage.
  4. Commit your changes to your local workspace and push them up to your GitHub copy.
  5. You submit a GitHub pull request with a description of what the change is.
  6. The contribution is reviewed. Maybe there will be some banter back-and-forth in the comments.
  7. If all goes well, your pull request will be accepted and your changes are merged in.

Authors, Copyright & Licensing

  • Copyright (c) 2014–2015 WePay.

See also the list of contributors who participated in this project.

Licensed for use under the terms of the Apache 2.0 license.

Project Statistics

Sourcerank 3
Repository Size 4.72 MB
Stars 0
Forks 9
Watchers 5
Open issues 0
Dependencies 95
Contributors 5
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Andrew LeBlanc kouldisha Amy Facundo Ramos Ryan Parman

Interesting Forks See all

wepay/wecrowd-rails
Sample application that is used to demonstrate WePay Clear™.
Ruby - Apache-2.0 - Last pushed - 2 stars - 7 forks

Something wrong with this page? Make a suggestion

Login to resync this repository