metadata
title: DenialDefender
emoji: 🛡️
colorFrom: gray
colorTo: indigo
sdk: docker
pinned: false
DenialDefender Frontend
This directory contains the Next.js frontend for DenialDefender—a premium, "Clinical Dark" web interface designed to showcase the AMD MI300X RAG pipeline.
Prerequisites
- Node.js: v18+ (v20 recommended)
- Backend: A running instance of the DenialDefender FastAPI backend (either locally on port
9000or hosted via anngroktunnel).
Getting Started
Install Dependencies: Navigate to the
frontenddirectory and run:npm installEnvironment Variables: Create a
.env.localfile in the root of thefrontenddirectory.If you are testing against a local backend on your machine:
NEXT_PUBLIC_API_URL=http://localhost:9000If you are testing against the live AMD Developer Cloud instance (routed via ngrok):
NEXT_PUBLIC_API_URL=https://<your-ngrok-url>.ngrok-free.devStart the Development Server:
npm run devOpen http://localhost:3000 in your browser to view the application.
Directory Structure
app/globals.css: Contains the foundational design tokens, CSS variables, and custom utility classes for the "Clinical Dark" theme.app/layout.tsx: Root layout, font loading (Inter and JetBrains Mono), and metadata.app/page.tsx: The main landing page orchestrating the layout.app/components/: Modular UI sections including the Hero, Interactive Demo, Data Hub, Navbar, and Footer.public/: Static assets, branding logos, and the sample PDF dataset available for users to download.
Building for Production
To create an optimized production build:
npm run build
npm start
This will compile the application and start a Node server ready for production traffic.