WeCrowd is a sample Rails application which shows you how to integrate with our WePay Clear™ product offering.
- Install Vagrant.
- Install VirtualBox OR VMware + VMware Provider for Vagrant.
Checkout the WeCrowd repository.
git checkout email@example.com:wepay/wecrowd-rails.git
Install the vagrant-vbguest plugin for Vagrant.
vagrant plugin install vagrant-vbguest
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
After several minutes you will be back at your prompt. You now need to open an SSH session to the VM.
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>
Run the Rails server.
cd /vagrant rails server
Visit http://0.0.0.0:3000 in your web browser to see the app running.
Here's the process for contributing:
- Fork WeCrowd to your GitHub account.
- Clone your GitHub copy of the repository into your local workspace.
- Write code, fix bugs, and add tests with 100% code coverage.
- Commit your changes to your local workspace and push them up to your GitHub copy.
- You submit a GitHub pull request with a description of what the change is.
- The contribution is reviewed. Maybe there will be some banter back-and-forth in the comments.
- 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.