FDLogUp/README.md

29 lines
829 B
Markdown
Raw Permalink Normal View History

# 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
2024-06-22 18:01:55 -04:00
bun install
bun run exe
```
To run the server:
```sh
cd server
2024-06-22 18:01:55 -04:00
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.
2024-06-22 18:02:19 -04:00
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
```