Skip to content

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.

License

Notifications You must be signed in to change notification settings

degisew/legal_assistant_ui

Repository files navigation

Legal Assistant Frontend

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

Key Features

  • 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

Setup

pre-requesites

  • NodeJs

Instructions

1. Clone the Repository

git clone https://github.com/degisew/legal_assistant_ui.git
cd legal_assistant_ui

2. Install Dependencies

npm install
# or
yarn install

3. Run the App

npm run dev
# or
yarn dev

Tech Stack

  • React + TypeScript

  • React Router v6

  • Vanilla CSS for styling

  • Axios for HTTP requests

  • Vite

  • Backend: FastAPI (not included in this repo)

Folder Structure

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

License

MIT License. See LICENSE.

⭐ Star this repo if you found it useful!

Built by Degisew Mengist

⬆ Back to Top

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published