Skip to content
davout edited this page Jun 20, 2011 · 5 revisions

Installing bitcoin-central

Bitcoin Central powers bitcoin-central.net, a bitcoin trading platform. It is :

  • Open Source,
  • Based on Ruby on Rails,
  • Fully localizable,
  • Multi-currency.

Linux and Windows setup work well, I found the easiest to be an Ubuntu install

Windows

  1. Install Ruby and MySQL
  2. Install Ruby Development Kit (https://github.com/oneclick/rubyinstaller/wiki/development-kit)
  3. Install rubygems

Linux (Debian flavors)

  1. Install required packages

     $ sudo apt-get install ruby ruby-dev libssl-dev irb rubygems mysql
    
  2. Add gem binaries to path and re-login

     # First line of /etc/environment should show something like this
     PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin"
    
  3. Update rubygems if necessary (http://programmers-blog.com/2009/04/12/ruby-gem-update-system-is-disabled-on-debian)

Common

  1. Install rails and bundler

     $ sudo gem install rails bundler
    
  2. Fork project if relevant

  3. Check out sources with git

  4. Install the required gems

     $ cd [SOURCE PATH]
     $ bundle
    
  5. Log-in to MySQL console and run the following

     GRANT ALL PRIVILEGES ON bitcoin-bank_development.* TO 'rails'@'localhost' IDENTIFIED BY 'rails';
    
  6. Run a couple of rake tasks

     $ rake db:create
     $ rake db:migrate
    
  7. Edit config/bitcoin.yml to be able to connect your instance to a bitcoin client

  8. Run the rails server

     $ rails s
    

Your fresh instance should now be running on http://localhost:3000/ !

Contributions

All are welcome, improvements, fixes and translations. Please read the security guidelines before contributing.

License

AGPL License. Copyright 2010-2011 David FRANCOIS

Clone this wiki locally