This project is a monorepo designed for learning purposes, featuring a frontend AI chat interface and a backend API that connects to Ollama. The focus is on core functionality and a straightforward user experience.
The project is organized into two main directories:
ai-chat-be/: Contains the backend API service, likely built with NestJS as indicated bynest-cli.json. This service acts as an interface to Ollama.ai-chat-fe/: Houses the frontend user interface, developed using Vite and React, as suggested byvite.config.tsandrouter.tsx.
Below is a screenshot of the AI Chat interface:
To get this project up and running, follow these general steps:
- Navigate to the backend directory:
cd ai-chat-be - Install backend dependencies:
pnpm install
- Start the backend server: (Refer to
ai-chat-be/package.jsonfor specific commands, e.g.,pnpm start:dev) - Navigate to the frontend directory:
cd ../ai-chat-fe - Install frontend dependencies:
pnpm install
- Start the frontend development server: (Refer to
ai-chat-fe/package.jsonfor specific commands, e.g.,pnpm dev)
- Backend: Node.js, NestJS (TypeScript)
- Frontend: React (TypeScript), Vite
- API Integration: Ollama
This project is for learning purposes. Contributions are welcome, but please keep the focus on core functionality.
