Web application for monitoring Postgres database
- Konrad Mikucki
- Patryk Waluś
- download asset https://github.com/komik966/postgstats/releases/download/1.0.0/postgstats-ui-web-1.0.0.tar
- extract files and serve them as static webpage
- download asset https://github.com/komik966/postgstats/releases/download/1.0.0/postgstats-api-1.0.0.tar
- extract:
tar -xf postgstats-api-1.0.0.tar
- start server (assuming server should listen on
localhost:8090
and database is available atlocalhost:5432
):./postgstats/bin/postgstats localhost 8090 'jdbc:postgresql://localhost:5432/postgres?user=postgres&password=postgres'
requirements:
- yarn (https://classic.yarnpkg.com/en/docs/install)
- node (https://nodejs.org/en/download/package-manager)
start server:
cd ./ui-web
yarn install
yarn start
start empty postgres database:
docker-compose up
example queries available at ./database/simulation.sql
start server on localhost:8090
which connects to local database:
cd ./api
./gradlew run --args="localhost 8090 'jdbc:postgresql://localhost:5432/postgres?user=postgres&password=postgres'"
cd ./ui-web
yarn build
Build result will be available at ./ui-web/build
cd ./api
./gradlew distTar
Build result will be available at ./api/build/distributions