** 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 git@github.com:peatio/peatio.git
cd peatio
bundle install
cp config/application.yml.example config/application.yml
cp config/database.yml.example config/database.yml
cp config/currencies.yml.example config/currencies.yml
cp config/markets.yml.example config/markets.yml
cp config/amqp.yml.example config/amqp.yml
# uncomment reCAPTCHA and Pusher related settings
vim config/application.yml
# replace username:password and port with the one you set in
# username and password should only contain letters and numbers, do not use email as username
# bitcoin.conf in previous step
vim config/currencies.yml
vim config/database.yml
# Initialize the database and load the seed data
bundle exec rake db:setup
# start all daemons
rake daemons:start
# or start daemon one by one
rake daemon:matching:start
...
# Daemon trade_executor can be run concurrently, e.g. below
# line will start four trade executors, each with its own logfile.
# Default to 1.
TRADE_EXECUTOR=4 rake daemon:trade_executor:start
# You can do the same when you start all daemons:
TRADE_EXECUTOR=4 rake daemon:start
# start server
rails server
Visit http://localhost:3000
user: admin@peatio.dev
pass: Pass@word8