Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower default log level for backend #263

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading