Skip to content

Commit

Permalink
Lower default log level for backend (#263)
Browse files Browse the repository at this point in the history
* Improving documentation on how to get started, lowering default log level to warn to reduce spam
* Upgrading unit test dependencies
  • Loading branch information
epacke authored Nov 20, 2024
1 parent 02fd188 commit a216675
Show file tree
Hide file tree
Showing 6 changed files with 1,171 additions and 1,828 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ I gladly accept pull requests. If you have a pipeline you'd like to share/contri
If you don't know how to do forking and pull requests I can handle that part, just let me know via an issue
or dig up my contact details [here](https://loadbalancing.se/about/).

## Developing the application (ie. express/React)
1. Uncomment the pipeline-ui container from `docker-compose.yml`
2. Find the IP of your machine with ie `ifconfig` or `ip addr`
3. Run `export BACKEND_IP=192.168.1.10` where `192.168.1.10` is your main IP if the client
2. Start logstash with `BACKEND_ENDPOINT=http://${BACKEND_IP}:8080/api/v1/receiveLogstashOutput docker compose up`
3. In another terminal, start backend with `cd pipeline-ui/backend; npm run dev`
4. In yet another terminal, start frontend with `cd pipeline-ui/frontend`
## Contributing to the application (express/React)
If you want to to develop the application you'll need a local development environment
on your client. Follow these steps to get started:

1. Find the IP of your machine with ie `ifconfig` or `ip addr`
2. Run `export BACKEND_IP=192.168.1.10` where `192.168.1.10` is your main IP if the client
3. Start logstash with `BACKEND_ENDPOINT=http://${BACKEND_IP}:8080/api/v1/receiveLogstashOutput docker compose up logstash`

*Note that some flavors uses `docker compose` instead of `docker-compose`*
4. In another terminal, start backend with `cd pipeline-ui/backend; npm run dev`
5. In yet another terminal, start frontend with `cd pipeline-ui/frontend`

Now you can update the code freely and both backend and frontend should refresh automatically.

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ services:
pipeline-ui:
build: "./pipeline-ui"
container_name: "config_tester"
environment:
LOG_LEVEL: warn
ports:
- "8080:8080"
volumes:
Expand Down
Loading

0 comments on commit a216675

Please sign in to comment.