Hoan Luu Huu bfbd66ef5c Feat/jaeger (#243)
* added dummy jaeger json file

* added jaeger types file

* added dev jaeger endpoint

* added jaeger modal with trace visual / information

* refactored jaeger logic
fixed offsets on short duration spans

* refactored into smaller components & added basic scroll bar

* removed buttons, added scroll-x, fixed details height and scroll-y

* shrunk bar graph to fit view port

* slight adjustments

* removed ref and now calculate width based on window innerwidth

* @media for phone layouts

* -fixed details width and padding.
-removed scroll.tsx as not needed now
-using SpanKind to find parent for now

* -reduced truncate size for smaller screens

* -root span is now determined from parentSpanId not being found

* removed un-needed calls to /getRecentCalls as this was causing a race condition when pcap & jaeger fetching at same time
- removed console.log's

* wip: add tabs for recent callt tracing

* wip: add tabs for recent callt tracing

* wip: add tabs for recent callt tracing

* fix: review comments

* fix: review comments

---------

Co-authored-by: ajukes <ajukes@vibecoms.co.uk>
2023-05-05 20:12:46 -04:00
2023-04-10 09:41:37 -04:00
2022-09-22 08:38:21 -07:00
2022-09-22 08:38:21 -07:00
2023-05-05 20:12:46 -04:00
2023-05-05 20:12:46 -04:00
2022-09-22 08:38:21 -07:00
2023-05-04 19:54:46 -04:00
2022-09-22 08:38:21 -07:00
2022-09-22 08:38:21 -07:00
2023-02-05 08:22:23 -08:00
2022-09-22 08:38:21 -07:00
2022-09-22 08:38:21 -07:00
2022-09-22 08:38:21 -07:00
2023-05-04 19:54:46 -04:00
2023-05-04 19:54:46 -04:00
2022-09-22 08:38:21 -07:00
2022-09-22 08:38:21 -07:00

jambonz

A simple provisioning webapp for jambonz

OSS Developers

If you're here to contribute to the jambonz web app source code you can view our contributor readme.

Webapp deployment

Deploy to production

  1. Install pm2 globally on the server hosting this application.
  2. Copy .env to .env.local
  3. In .env.local, replace [ip]:[port] with the API's IP and port
  4. Run npm run deploy
  5. Access the web app via port 3001

NOTE: Here is what npm run deploy does:

  • Install all dependencies (npm i)
  • Build the production React application (npm run build)
  • Launch the app with pm2 (pm2 start npm --name "jambonz-webapp" -- run serve)

Alternatively, you can serve the app manually (without pm2) with npm run serve.

Update production

If there is an update to this code base, you can update the code without re-deploying.

  1. run git pull origin main --rebase
  2. run npm i
  3. run npm run build

With docker

You can pull the public docker image for the web app:

docker pull ghcr.io/jambonz/webapp:latest

You can run the docker image for the webapp and expose the serve port to the host:

docker run --publish=3001:3001 ghcr.io/jambonz/webapp:latest

You can build and run the docker image from the source, for example:

docker build . --tag jambonz-webapp:local
docker run --publish=3001:3001 jambonz-webapp:local
Description
A simple provisioning web app for jambonz
Readme MIT 13 MiB
Languages
TypeScript 93.8%
SCSS 5.7%
HTML 0.2%
Shell 0.2%