Skip to content
/ chat Public

AI chatbot that remembers info about you, conversation history, and more.

Notifications You must be signed in to change notification settings

Ellipog/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

59e7571 Β· Feb 20, 2025

History

19 Commits
Feb 20, 2025
Feb 20, 2025
Feb 20, 2025
Feb 20, 2025
Feb 20, 2025
Feb 20, 2025
Feb 20, 2025
Feb 19, 2025
Feb 20, 2025
Feb 20, 2025
Feb 19, 2025
Feb 20, 2025
Feb 20, 2025
Feb 19, 2025
Feb 20, 2025
Feb 19, 2025

Repository files navigation

Chat

Next.js React TypeScript TailwindCSS MongoDB

A modern chat application built with Next.js, featuring real-time communication, user authentication, and AI-powered interactions.

✨ Features

  • πŸ” Secure user authentication with JWT and bcrypt
  • πŸ’¬ Real-time chat functionality
  • πŸ€– AI integration with OpenAI
  • 🎨 Modern UI with Tailwind CSS and Framer Motion
  • πŸ“± Fully responsive design
  • πŸ” Syntax highlighting for code snippets
  • 🌐 MongoDB database integration

πŸ› οΈ Tech Stack

  • Frontend: Next.js, React, TypeScript
  • Styling: TailwindCSS, Framer Motion
  • Backend: Next.js API Routes
  • Database: MongoDB with Mongoose
  • Authentication: JWT, bcryptjs
  • AI Integration: OpenAI API
  • Package Manager: npm/bun

πŸš€ Getting Started

  1. Clone the repository

    git clone https://github.com/Ellipog/chat.git
    cd chat
  2. Install dependencies

    bun i
  3. Set up environment variables Create a .env file in the root directory with the following variables:

    MONGODB_URI=your_mongodb_uri
    JWT_SECRET=your_jwt_secret
    OPENAI_API_KEY=your_openai_api_key
    OPENAI_MODEL=openai_model_name (e.g. gpt-4o-mini)
  4. Run the development server

    bun dev

    Open http://localhost:3000 in your browser to see the application.

πŸ“ Project Structure

β”œβ”€β”€ app/                # Next.js app directory
β”‚   β”œβ”€β”€ api/           # API routes
β”‚   β”œβ”€β”€ layout.tsx     # Root layout
β”‚   └── page.tsx       # Home page
β”œβ”€β”€ components/        # Reusable React components
β”œβ”€β”€ context/          # React context providers
β”œβ”€β”€ lib/             # Utility functions and configurations
β”œβ”€β”€ models/          # MongoDB models
β”œβ”€β”€ public/          # Static assets
└── types/           # TypeScript type definitions

by Elliot

About

AI chatbot that remembers info about you, conversation history, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published