Peatio workbench is an easy way to start Peatio development environment.
- Recursive clone :
git clone --recursive https://github.com/rubykube/workbench.git
cd workbench
vagrant up
- Build the images:
make build
- run the application:
make run
- Add peatio and barong into your
/etc/hosts
To have barong login working with peatio you will need to add this to your /etc/hosts
:
0.0.0.0 api.wb.local
0.0.0.0 auth.wb.local
0.0.0.0 api.slanger.wb.local
0.0.0.0 ws.slanger.wb.local
0.0.0.0 pma.wb.local
- 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 [email protected] - Sign in at auth.wb.local, then go to /admin and navigate to Applications
- Create new application with the following callback url
http://api.wb.local/auth/barong/callback
- In
peatio.env
, 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.
bundle exec rake toolbox:run