feat: solution for 'Повторный экзамен #2: Сравнительный обзор 3 сущностей (Tavily)'

This commit is contained in:
2026-06-29 17:37:30 +03:00
parent 46fa6752db
commit 6d59b9669e
15 changed files with 367 additions and 126 deletions
+75 -15
View File
@@ -1,21 +1,81 @@
# Повторный экзамен #2: Сравнительный обзор 3 сущностей (Tavily)
# Tavily Comparison App
Главная
Мои задания
Повторный экзамен #2: Сравнительный обзор 3 сущностей (Tavily)
EN
Повторный экзамен #2: Сравнительный обзор 3 сущностей (Tavily)
Зачёт
Версия 9
Дедлайн сдачи: 31.08.2026
This project is a simple React application that allows users to compare three entities by fetching data from the Tavily API and displaying the results in a table.
В работе
## Features
Требуется доработка
- Input form for three entities.
- Fetches data from the Tavily API.
- Displays comparison results in a responsive table.
- Handles loading and error states.
- Unit tests for the API logic.
В работе отсутствуют обязательные пакеты LangGraph и LangChain, необходимые для реализации заданной функциональности. Пожалуйста, добавьте их в requirements.txt и убедитесь, что все импорты работают без ошибок.
## Prerequisites
Редактирование ответа
- Node.js (v18 or newer)
- npm or yarn
Заполните ответ и отправьте работу на пр
## Setup
1. **Clone the repository**
```bash
git clone https://git.brojs.ru/kuzakhmetovartur/povtornyy-ekzamen-2-sravnitelnyy-obzor-3.git
cd povtornyy-ekzamen-2-sravnitelnyy-obzor-3
```
2. **Install dependencies**
```bash
npm install
# or
yarn install
```
3. **Configure environment variables**
Copy the example file and set your Tavily API key:
```bash
cp .env.example .env
```
Edit `.env` and replace `your_api_key_here` with your actual key.
4. **Run the development server**
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:5173](http://localhost:5173) to view the app.
## Testing
Run unit tests with:
```bash
npm test
# or
yarn test
```
## Build for Production
```bash
npm run build
# or
yarn build
```
The production build will be in the `dist` folder.
## Deployment
You can deploy the `dist` folder to any static hosting provider (Netlify, Vercel, GitHub Pages, etc.). Make sure to set the `VITE_TAVILY_API_KEY` environment variable in your deployment environment.
## License
MIT License