Skip to content

brandonindia-mcs/product-catalog

Repository files navigation

Middleware LLM interrogtion (chat)

Demonstrates a prompt entered into a React frontend component and a middleware node.js/Fastify server calling python script. Python constructs an AI client, uses chat completions to send a canned prompt to Azure OpenAI, then sends what it gets from the LLM back to the server.

The prompt sent to the LLM is canned. The reply from the LLM is captured and displayed in realtime.

Screenshot 2025-11-04 at 5 27 18 PM

React frontend + vite

Screenshot of Gpt Interrogation.

Demonstrates a prompt entered into a React frontend component, then a middleware node.js/Fastify server calling python script and returning with an error. In the 12 hours post screenshot (above), my Azure credits expired so access to the LLM backend is revoked.

Screenshot 2025-11-04 at 5 32 34 PM Screenshot 2025-11-04 at 5 28 18 PM

Architecture

This is a 3-tiered web application: frontend, middleware & backend, all served under Kubernetes. It comes with a menu driver that cleanly performs the labeled action.

  1. The frontend is a React web application.
  2. The middleware is a node.js layer for logic & data access.
  3. The backend is a postgres database.
Screenshot 2025-11-04 at 7 05 26 PM

Dependencies

  • kubectl
  • docker
  • openssl (for self-signed certs)

Getting Started

git clone git@github.com:<YOUR-SSH-USER>/product-catalog
cd ./product-catalog
. ./menu.sh <<<3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors