Skip to content

chauhan-ankit24/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Ollama Chat Bot

A modern, full-stack chat application powered by Next.js (frontend) and Node.js/Express (backend) with PostgreSQL for persistent chat storage. Features a clean UI, dynamic feedback, chat management, and export/share functionality.

Features

  • Dynamic chat UI with thinking/loader indicators
  • Sidebar with collapsible chat list, add/rename/delete chats
  • User and bot message formatting with markdown/code highlighting
  • Retry/copy actions for user messages
  • Export/share conversation as JSON
  • Pointer cursor on all CTAs
  • Clean, production-ready codebase

Tech Stack

  • Frontend: Next.js, React, Tailwind CSS, react-icons, react-markdown, prismjs
  • Backend: Node.js, Express, PostgreSQL

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • PostgreSQL

Backend Setup

  1. Navigate to the backend folder:
    cd backend
  2. Install dependencies:
    npm install
  3. Configure your database in config/db.js and config/default.js.
  4. Run migrations:
    node run-migrate.js
  5. Start the backend server:
    npm start

Frontend Setup

  1. Navigate to the frontend folder:
    cd ../frontend
  2. Install dependencies:
    npm install
  3. Start the frontend app:
    npm run dev
  4. Open http://localhost:3000 in your browser.

Project Structure

  • frontend/ — Next.js app (UI, chat logic)
  • backend/ — Express API (chat/message endpoints, DB)

Customization

  • Update user profile info in page.tsx (sidebar bottom section)
  • Adjust chat model/version label in the top bar

License

MIT


Built by Ankit Chauhan. For questions or contributions, open an issue or PR.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published