Peatio workbench is an easy way to start Peatio development environment.
- Clone peatio and barong
- Create links to workbench root (e.g.
ln -s ../../path/to/peatio
) - Build the images:
make build
- Start all services need for peatio:
make prepare
. Make sure mysql server is running before the next step (checkdocker logs workbench_db_1
) - Prepare the database and configs:
make setup-apps
- To have barong login working with peatio you will need to add this to your
/etc/hosts
:
0.0.0.0 peatio
0.0.0.0 barong
- Start barong:
docker-compose up -d barong
- Create admin user for barong:
docker-compose run --rm barong bin/rake db:seed
It will output password for admin@barong.io - Sign in at barong:8001, then go to /admin and navigate to Applications
- Create new application with the following callback url
http://peatio:8000/auth/barong/callback
- In
docker-compose.yaml
, set the newly created application credentials:
- BARONG_CLIENT_ID=xxxxx
- BARONG_CLIENT_SECRET=xxxxx
- Start peatio server:
docker-compose up -d peatio
Simply start your local server. Now you're able to log in with your local Barong and Peatio.
TODO