29 lines
829 B
Markdown
29 lines
829 B
Markdown
# FDLogUp
|
|
This project uses [Bun](https://bun.sh/) to build a client executable and to run the server with. To install use this oneliner:
|
|
```sh
|
|
curl -fsSL https://bun.sh/install | bash
|
|
```
|
|
|
|
To build the client:
|
|
```sh
|
|
cd client
|
|
bun install
|
|
bun run exe
|
|
```
|
|
|
|
To run the server:
|
|
```sh
|
|
cd server
|
|
bun install
|
|
# clone .env from .env.example and fill in variables
|
|
bun start
|
|
```
|
|
|
|
The provided docker-compose file sets up a PostgreSQL server and a Grafana instance.
|
|
There is also a Grafana dashboard JSON file for an example use of the data.
|
|
Make sure to import the `server/schema.sql` into PostgreSQL before using it.
|
|
You can import the datasource into grafana with the command:
|
|
```sh
|
|
curl -X "POST" "http://localhost:3000/api/datasources" -H "Content-Type: application/json" --user admin:admin --data-binary @grafana-datasource.json
|
|
```
|