The Peatio installation consists of setting up the following components:
- Requirements
- Bitcoind
- Peatio
** More details are in the requirements doc
Peatio use reCAPTCHA to make sure certain operations is not done by bots. A development key/secrect pair is provided in config/application.yml
(uncomment to use). PLEASE USE IT IN DEVELOPMENT/TEST ENVIRONMENT ONLY!
Peatio depends on Pusher. A development key/secret pair for development/test is provided in config/application.yml
(uncomment to use). PLEASE USE IT IN DEVELOPMENT/TEST ENVIRONMENT ONLY!
More details to visit pusher official website
For Mac
brew install phantomjs
For Ubuntu
sudo apt-get install -y libfontconfig libfontconfig-dev libfreetype6-dev
** More details are in the poltergeist doc.
For Mac
brew install qrencode
For Ubuntu
sudo apt-get install qrencode libqrencode-dev
For Mac
Download and Install Bitcoin
For Ubuntu
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install -y bitcoind
Insert the following lines into your bitcoin.conf, and replce with your username and password.
server=1
daemon=1
rpcuser=INVENT_A_UNIQUE_USERNAME
rpcpassword=INVENT_A_UNIQUE_PASSWORD
# If run on the test network instead of the real bitcoin network
testnet=1
For Mac
~/Library/Application\ Support/Bitcoin/bitcoin.conf
For Linxu
~/.bitcoin/bitcoin.conf
For Mac
open /Applications/Bitcoin-Qt.app --args -server
For Linux
bitcoind
git clone [email protected]:peatio/peatio.git
cd peatio
bundle install
cp config/application.yml.example config/application.yml
cp config/database.yml.example config/database.yml
# uncomment reCAPTCHA and Pusher related settings
vim config/application.yml
# replace username:password and port with the one you set in
# bitcoin.conf in previous step
vim config/currency.yml
vim config/database.yml
# Initialize the database and load the seed data
bundle exec rake db:setup
rake environment resque:work QUEUE=*
rails server
Visit http://localhost:3000
user: [email protected]
pass: Pass@word8