Cache

by laCour

GitHub Readme.md

Cache

Deploy

This is Ruby on Rails application for sharing content in exchange for digital currency.

Screenshot

Running Locally

Once you have installed Ruby, Bundler, and the Heroku Toolbelt the application can be initialized using the following commands:

git clone https://github.com/lacour/cache.git
cd cache
bundle
rake bootstrap

Once you configure the application, you can start the application using foreman start. The application should now be running on localhost:5000.

Deploying to Heroku

heroku create
git push heroku master
heroku run rake bootstrap
heroku open

In order for payouts to work, you must first enable the Heroku Scheduler add-on to run rake cron:

heroku addons:add scheduler:standard
heroku addons:open scheduler

Configuration

All software configuration is conveniently placed within the config/config.yml file. Here, you can change the name of the application, set custom fees, change the digital currency being used, and more.

Third Party Configuration

This software also requires the use of two third parties, Amazon S3 for file hosting, and Block.io for handling digital currencies. Registration is required for both.

The software will check for the following environment variables for each service. The environment variables can be defined in a file named .env during development, and also by using the Heroku toolbelt for setting these in production.

S3_BUCKET=
S3_KEY=
S3_SECRET=
BLOCKIO_KEY=
BLOCKIO_PIN=

Warning

This software is not intended for production use. If you wish to use this software for production use, I highly suggest removing the dependency of Block.io for deposits/payouts. This was only used to keep the application slim for Heroku. I recommend the bitcoin-ruby gem for Bitcoin or Litecoin.