Java - intive/patronage21-qa GitHub Wiki
Java backend
Tools required to run the application
Steps to run the application
- 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
- Go to root directory
cd patronage21-java
- Change branch to dev
git checkout dev
- Start the docker container
docker-compose up -d
- Create application's image
docker build -t patronative_app
- Go to the Docker -> patronative_db -> CLI (icon in the upper right corner)
psql patronative admin
drop schema patronative cascade;
-
Go to the file 'db.sql' -> copy the content
-
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:
-
Download Npgsql PostgreSQL Integration
-
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
- 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
- Go to the root directory
cd patronage21-java-frontend
- Change branch to dev
git checkout dev
- 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.
- Download required files
npm ci
- Start the application
npm start
Application should open in the browser at the address http://localhost:3000/