murathanakdemir / coin-exchange

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coin Exchange

Installation

  • Install Docker Destop according to your OS.
  • Run Docker Desktop App and start Docker engine.

Run Project

  • 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.

Access to Database From Browser

  • 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.

Stop Project

  • 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

Unit Testing

  • 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

Integration Testing

  • 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

About


Languages

Language:Java 98.3%Language:Dockerfile 0.6%Language:Batchfile 0.6%Language:Shell 0.5%