Java - intive/patronage21-qa GitHub Wiki

Java backend

Tools required to run the application

Steps to run the application

  1. Clone the repository to your desktop ('git bash here' in the place where you want to download the repository)

git clone https://github.com/intive/patronage21-java.git

  1. Go to root directory

cd patronage21-java

  1. Change branch to dev

git checkout dev

  1. Start the docker container

docker-compose up -d

  1. Create application's image

docker build -t patronative_app

  1. Go to the Docker -> patronative_db -> CLI (icon in the upper right corner)

psql patronative admin

drop schema patronative cascade;

  1. Go to the file 'db.sql' -> copy the content

  2. Back to the CLI -> clik right mouse button -> click enter

After that, you will be able to access the application at http://localhost:8080.

All available endpoints and parameters can be found in Swagger: http://localhost:8080/swagger-ui.html

PostgreSQL

Data to access database:

SYSTEM: PostgreSQL

SERVER: postgres

USERNAME: admin

PASSWORD: p4tron4tiv3

DATABASE: patronative

To manage database from Visual Studio, you have to:

  1. Download Npgsql PostgreSQL Integration

  2. Narzędzia -> Łączenie z bazą danych -> fulfill 'Connection details' with the above data -> Testuj połączenie -> OK.

Java frontend

Tools required to run the application

Steps to run the application

  1. Clone the repository to your desktop ('git bash here' in the place where you want to download the repository)

git clone https://github.com/intive/patronage21-java-frontend.git

  1. Go to the root directory

cd patronage21-java-frontend

  1. Change branch to dev

git checkout dev

  1. To make sure that the installation went well, write below commands in the console

node -v

npm -v

The system should show the version of Node.js and npm.

  1. Download required files

npm ci

  1. Start the application

npm start

Application should open in the browser at the address http://localhost:3000/