- Install Docker Destop according to your OS.
- Run Docker Desktop App and start Docker engine.
- Go to exchange project root folder and run the following commands from terminal according to your OS:
Linux or Mac:
cd scripts
bash build-project.sh
bash docker-compose-up.sh
Windows:
cd scripts
build-project.bat
docker-compose-up.bat
- Now exchange, PostgreSQL and PgAdmin database are running on docker container.
- You can access the Swagger documentation from here.
- You can access the PgAdmin from here.
- You case use PgAdmin for PostgreSQL on browser from here.
- You can login with username: postgres@sgv.com & password: postgres
- Create server from left menu.
- Fill the form data (name = exchange & host = postgres & username = postgres & password = postgres)
- Then save server.
- You can access the trade_history table from Servers/exchange/Databases/postgres/Schemas/public/Tables.
- Go to exchange project root folder and run the following commands from terminal according to your OS:
Linux or Mac:
cd scripts
bash docker-compose-down.sh
Windows:
cd scripts
docker-compose-down.bat
- Go to exchange project root folder and run the following commands from terminal according to your OS:
Linux or Mac:
cd scripts
bash run-unit-tests.sh
Windows:
cd scripts
run-unit-tests.bat
- Go to exchange project root folder and run the following commands from terminal according to your OS:
Linux or Mac:
cd scripts
bash run-integration-tests.sh
Windows:
cd scripts
run-integration-tests.bat