Skip to content

bkrajendra/versioniq

Repository files navigation

vboy – Service Versions Dashboard

A minimal Tailwind CSS + daisyUI + vanilla JavaScript dashboard to view Spring Boot /actuator/info build versions per app instance (e.g. app-qa-1, app-cloud-1).

Run

Install dependencies (already present if node_modules/ exists):

npm install

Build CSS:

npm run build

Start the app (static server + proxy):

npm run serve

Then open http://localhost:5173.

Use

  • Dashboard: select an instance, click Refresh, view services as cards (version/build/time).
  • Settings: add multiple instances and services.
    • Instance: name, base URL, username, password
    • Service: name, context path (e.g. /iamws/rolelcm), actuator path (default /actuator/info)
  • Storage: everything is saved in localStorage (browser-only).
  • Import/Export: in Settings, export JSON or import JSON to move config between machines.

CORS (why proxy fixes it)

Browsers block cross-origin requests when the target server doesn’t allow your origin (CORS), even if curl works.

This app avoids that by calling a same-origin endpoint:

  • Browser → POST http://localhost:5173/api/proxy
  • Server → fetches https://app-.../actuator/info with Basic Auth
  • Server → returns JSON to the browser

So the browser never calls the remote domains directly.

Deploy to Cloudflare Pages

This repo supports Cloudflare Pages with a Pages Function at functions/api/proxy.js.

Prereqs

  • Install Wrangler:
npm i -D wrangler
  • Login once:
npx wrangler login

Build and deploy

This builds styles.css, then writes deployable files to ./dist (so you don't deploy node_modules), then deploys:

npm run pages:deploy

After deploy, your dashboard will be on your Pages domain and /api/proxy will be available as a Pages Function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors