Donate primecoins to open source projects or make commits and get tips for it.
Ruby HTML Gherkin JavaScript CSS CoffeeScript
Clone or download
#1 Compare This branch is even with sigmike:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
features
lib
log
public
script
test
vendor/assets
.gitignore
.ruby-version
Capfile
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru

README.md

Prime4commit

peercoin tip for next commit

Donate primecoins to open source projects or make commits and get tips for it.

Official site: http://prime4commit.com/

Development

To run prime4commit in development mode follow these instructions:

  • Install Ruby 2.0+

  • Install the bundler gem (you may need root):

gem install bundler
  • Install git

  • Clone the repository

git clone git@github.com:sigmike/prime4commit.git
cd prime4commit
  • Install the sqlite3 development libraries

  • Install the gems (without the production gems):

bundle install --without mysql postgresql
  • Create database.yml.
cp config/database.yml{.sample,}
  • Create config.yml
cp config/config.yml{.example,}
  • Edit config.yml

  • Initialize the database

    bundle exec rake db:migrate
  • Make sure ppcoind is running with RPC enabled

  • Run the server

    bundle exec rails server

  • Connect to the server at http://localhost:3000/

To update the project balances run this command:

    bundle exec rails runner "BalanceUpdater.work"

To retreive commits and send tips on project that do not hold tips:

    bundle exec rails runner "BitcoinTipper.work"

License

MIT License

Based on peer4commit, MIT License, copyright (c) 2014 sigmike

Which is based on Tip4commit, MIT License, copyright (c) 2013-2014 tip4commit