1. install the [Go runtime](https://go.dev/doc/install) (v1.17+)
--device=/dev/sda \
2. download the `scrutiny-web-frontend.tar.gz` for the [latest release](https://github.com/AnalogJ/scrutiny/releases/latest). Extract to a folder named `dist`
--device=/dev/sdb \
3. create a `scrutiny.yaml` config file
ghcr.io/analogj/scrutiny:master-omnibus
```yaml
/opt/scrutiny/bin/scrutiny-collector-metrics run
# config file for local development. store as scrutiny.yaml
```
version: 1
web:
## Local Development
listen:
port: 8080
### Frontend
host: 0.0.0.0
The frontend is written in Angular.
database:
If you're working on the frontend and can use mocked data rather than a real backend, you can use
# can also set absolute path here
```
location: ./scrutiny.db
cd webapp/frontend
src:
npm install
frontend:
ng serve --deploy-url="/web/" --base-href="/web/"
path: ./dist
```
influxdb:
retention_policy: false
However, if you need to also run the backend, and use real data, you'll need to run the following command:
```
log:
cd webapp/frontend && ng build --watch --output-path=../../dist --prod
file: 'web.log' #absolute or relative paths allowed, eg. web.log
```
level: DEBUG
> Note: if you do not add `--prod` flag, app will display mocked data for api calls.
```
4. start a InfluxDB docker container.
### Backend
```bash
docker run -p 8086:8086 --rm influxdb:2.2
If you're using the `ng build` command above to generate your frontend, you'll need to create a custom config file and
```
override the `web.src.frontend.path` value.
5. start the scrutiny web server
```bash
```
go mod vendor
# config file for local development. store as scrutiny.yaml
go run webapp/backend/cmd/scrutiny/scrutiny.go start --config ./scrutiny.yaml
version: 1
```
6. open your browser to [http://localhost:8080/web](http://localhost:8080/web)
web:
listen:
# Modifying the Scrutiny Frontend Angular SPA
port: 8080
host: 0.0.0.0
The frontend is written in Angular. If you're working on the frontend and can use mocked data rather than a real backend, you can follow the instructions below: