PlaatStock

Installation Instruction

## Step 1a - Install latest Java (Java 17 or higher is needed)
sudo apt update
sudo apt install default-jdk

## Step 2 - Install Postgres
sudo apt install postgresql

## Step 3 - Create schema, user and database 
sudo su postgres
psql 
CREATE USER stock WITH PASSWORD 'stock';
ALTER USER stock WITH SUPERUSER;
CREATE DATABASE stock WITH OWNER stock;
GRANT ALL PRIVILEGES ON DATABASE stock TO stock;

## Step 4a - Create installation directory
mkdir /opt/plaatstock
chmod a+wrx /opt/plaatstock

## Step 4b - Copy two jar files (*.jar files are in GIT repo)
cp plaatstock-backend.jar /opt/plaatstock
cp plaatstock-frontend.jar /opt/plaatstock

## Step 5 - Enable apps as unix systemd services (*.service files are in GIT repo)
cp  plaatstock-backend.service /etc/systemd/system
sudo systemctl enable plaatstock-backend.service
sudo systemctl start plaatstock-backend.service
cp  plaatstock-frontend.service /etc/systemd/system
sudo systemctl enable plaatstock-frontend.service
sudo systemctl start plaatstock-frontend.service

## Step 6 - Start browser and enter http://<ip>:8084. Default credentials are:
username=admin 
password=admin

## Step 7 - Done
Installation is done. Good Job!

If there are any questions please sent an email to info@plaatsoft.nl

Open Source

The checkout the source code here
plaatdomotica-stock
plaatdomotica-stock

Disclaimer

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.