Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/komik966/postgstats
https://github.com/komik966/postgstats
d3 d3js java netty postgres postgresql reactjs rxjs statistics typescript websocket
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/komik966/postgstats
- Owner: komik966
- Created: 2020-03-21T16:50:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T04:50:51.000Z (over 3 years ago)
- Last Synced: 2024-11-16T21:31:15.421Z (3 months ago)
- Topics: d3, d3js, java, netty, postgres, postgresql, reactjs, rxjs, statistics, typescript, websocket
- Language: TypeScript
- Size: 1.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostgStats
![Screenshot](./screenshot.png)
Web application for monitoring Postgres database
# Team
- Konrad Mikucki
- Patryk Waluś# Installation
## ui-web
1. download asset https://github.com/komik966/postgstats/releases/download/1.0.0/postgstats-ui-web-1.0.0.tar
2. extract files and serve them as static webpage
## api
1. download asset https://github.com/komik966/postgstats/releases/download/1.0.0/postgstats-api-1.0.0.tar
2. extract: `tar -xf postgstats-api-1.0.0.tar`
3. start server (assuming server should listen on `localhost:8090` and database is available at `localhost:5432`): `./postgstats/bin/postgstats localhost 8090 'jdbc:postgresql://localhost:5432/postgres?user=postgres&password=postgres'`# Development setup
## ui-web
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
```## database
start empty postgres database:
```
docker-compose up
```
example queries available at `./database/simulation.sql`## api
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'"
```# Building
## ui-web
```
cd ./ui-web
yarn build
```
Build result will be available at `./ui-web/build`
## api
```
cd ./api
./gradlew distTar
```
Build result will be available at `./api/build/distributions`