This is the frontend for the Legal Assistant application, built with React, designed to interact with a backend API (FastAPI) to help users with legal document analysis and question answering. It provides an intuitive chat interface, file upload system, and history tracking to make legal research easier and fast
-
Chat-based legal assistant
-
Upload and analyze legal documents in various format(PDF, DOCX, MD)
-
Ask questions and get relevant legal insights
-
Chat history sidebar for revisiting past interactions
-
Seamless integration with FastAPI backend
- NodeJs
git clone https://github.com/degisew/legal_assistant_ui.git
cd legal_assistant_ui
npm install
# or
yarn install
npm run dev
# or
yarn dev
-
React + TypeScript
-
React Router v6
-
Vanilla CSS for styling
-
Axios for HTTP requests
-
Vite
-
Backend: FastAPI (not included in this repo)
src/
├── components/ # Reusable UI components
├── pages/ # Page components
├── hooks/ # Custom React hooks
├── services/ # Axios instance and API utilities
├── types/ # Custom types
├── App.tsx # Main app with routing
└── main.tsx # App entry point
MIT License. See LICENSE.