A full-stack chatbot application built with:
- Backend: Node.js, Express, TypeScript, LangChain, Ollama
- Frontend: React, TypeScript, Modern CSS
chatbot/
├── backend/ # Node.js + Express API server
│ ├── src/
│ ├── package.json
│ └── tsconfig.json
├── frontend/ # React + TypeScript app
│ ├── src/
│ ├── public/
│ ├── package.json
│ └── tsconfig.json
└── README.md
- Node.js (v18 or higher)
- Ollama installed and running locally
- An Ollama model downloaded (e.g.,
ollama pull llama2)
-
Install Ollama (if not already installed):
# Visit https://ollama.ai/ or install via brew on macOS brew install ollama -
Start Ollama and pull a model:
ollama serve ollama pull llama2 # or any other model you prefer -
Install and run the backend:
cd backend yarn install yarn dev -
Install and run the frontend:
cd frontend yarn install yarn start
The application will be available at http://localhost:3000 with the API running on http://localhost:3001.
- Real-time chat interface
- Integration with Ollama models via LangChain
- TypeScript for type safety
- Responsive design
- Message history