otel-ui - React frontend for otel-demo API
5.1K
React frontend for the otel-demoā API with OAuth2 authentication.
A modern React + TypeScript frontend that consumes the otel-demo Flask API, featuring:
Deployment Status: Version 1.0.82 deployed to ui.lab.informationcart.comā š
Authentication: ā Fully functional OAuth2/PKCE flow with login, callback, and logout
# Run setup script
./setup.sh
# Start development server
npm run dev
# Open http://localhost:5173
ā ļø CRITICAL: Never commit directly to main. All changes must go through pull requests.
Two workflow options:
Option 1 - Direct develop to main (for regular changes):
git checkout develop
git pull origin develop
# Make your changes
git add .
git commit -m "feat: description"
git push origin develop
# Create PR: develop ā main on GitHub
Option 2 - Feature branch (for isolated features):
git checkout develop # or main
git pull origin develop
git checkout -b feature/my-feature
# Make your changes
git add .
git commit -m "feat: description"
git push origin feature/my-feature
# Create PR: feature/my-feature ā main on GitHub
Never do this:
git checkout main
git commit ... # ā FORBIDDEN
git push origin main # ā FORBIDDEN
Production (.env):
https://otel.lab.informationcart.comhttps://ui.lab.informationcart.com/callbackDevelopment (.env.local):
http://localhost:8080http://localhost:5173/callback.env.example and customize| Command | Description |
|---|---|
npm run dev | Start development server (port 5173) |
npm run build | Build for production |
npm run preview | Preview production build |
npm run lint:all | Run all linters (ESLint + Markdown) |
npm run format | Format code with Prettier |
npm run type-check | TypeScript type check |
npx playwright test | Run end-to-end tests |
| Resource | Value |
|---|---|
| Production URL | https://ui.lab.informationcart.comā |
| API Backend | https://otel.lab.informationcart.comā |
| K8s Cluster | k8s-pi5-cluster |
| Namespace | otel-ui |
| Docker Hub | stuartshay/otel-ui |
Cannot connect to API:
cd ../otel-demo && python run.py.env.local has VITE_API_BASE_URL=http://localhost:8080.envAuthentication issues:
localStorage.clear() in browser consoleCtrl+Shift+R (or Cmd+Shift+R on Mac).env.localBuild errors:
# Clean and reinstall
rm -rf node_modules package-lock.json dist
npm install
npm run build
MIT
Content type
Image
Digest
sha256:a890a618aā¦
Size
24.9 MB
Last updated
7 months ago
docker pull stuartshay/otel-ui