{"id":25567357,"url":"https://github.com/jatindhamija816/chatbot","last_synced_at":"2026-04-10T04:47:48.938Z","repository":{"id":273345383,"uuid":"919394051","full_name":"JatinDhamija816/chatbot","owner":"JatinDhamija816","description":"A simple chatbot built with NLP.js and Node.js that handles user inputs like greetings, jokes, and small talk with dynamic responses. It supports custom intents and is easily extendable for more conversational features.","archived":false,"fork":false,"pushed_at":"2025-01-20T10:28:53.000Z","size":157,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T11:23:58.431Z","etag":null,"topics":["chatbot","expressjs","nlp","nodejs","tailwindcss","vite-react"],"latest_commit_sha":null,"homepage":"https://chatbot-tawny-tau.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JatinDhamija816.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-20T10:06:57.000Z","updated_at":"2025-01-20T10:28:54.000Z","dependencies_parsed_at":"2025-01-20T11:24:11.433Z","dependency_job_id":"a1395876-cac2-41b9-9c9e-a8f850127a81","html_url":"https://github.com/JatinDhamija816/chatbot","commit_stats":null,"previous_names":["jatindhamija816/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JatinDhamija816%2Fchatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JatinDhamija816%2Fchatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JatinDhamija816%2Fchatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JatinDhamija816%2Fchatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JatinDhamija816","download_url":"https://codeload.github.com/JatinDhamija816/chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239931795,"owners_count":19720589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","expressjs","nlp","nodejs","tailwindcss","vite-react"],"created_at":"2025-02-20T23:29:05.886Z","updated_at":"2025-12-30T20:16:20.278Z","avatar_url":"https://github.com/JatinDhamija816.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatbot Application\n\nA simple chatbot application with a **React-based frontend** and a **Node.js/Express backend**, connected to a **MySQL database**. The chatbot responds to user messages with predefined replies and stores the chat history in a database.\n\n---\n\n## Features\n\n- **Send and Receive Messages**: Users can send messages, and the bot replies with appropriate responses.\n- **Database Integration**: Chat history is stored and retrieved from a MySQL database.\n- **Interactive UI**: Clean and responsive design using **Tailwind CSS**.\n- **Predefined Bot Replies**: Handles common queries like greetings, jokes, and help.\n- **API Integration**: Fetches jokes from an external API for dynamic responses.\n\n---\n\n## Tech Stack\n\n### Frontend\n\n- **React.js**\n- **Tailwind CSS**\n\n### Backend\n\n- **Node.js**\n- **Express.js**\n- **MySQL**\n- **NLP**\n\n### External APIs\n\n- [Official Joke API](https://official-joke-api.appspot.com/)\n\n---\n\n## Prerequisites\n\nBefore starting, make sure you have the following installed on your system:\n\n- **Node.js** (v14+)\n- **MySQL** database or a free hosted MySQL database (e.g., [freesqldatabase.com](https://www.freesqldatabase.com/))\n- **NPM** (Node Package Manager)\n\n---\n\n## Installation\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/JatinDhamija816/chatbot\ncd chatbot\n```\n\n## Backend Setup\n\n### Navigate to the backend directory:\n\n```bash\ncd server\n```\n\n### Install backend dependencies:\n\n```bash\nnpm install\n```\n\n### Create a .env file in the server directory and add your database credentials:\n\n```bash\nPORT=8000\nDB_HOST=your-database-host\nDB_USER=your-database-username\nDB_PASSWORD=your-database-password\nDB_NAME=your-database-name\nDB_PORT=3306\n```\n\n### Create the MySQL database and table:\n\n```bash\nCREATE DATABASE chatbot_db;\n\nUSE chatbot_db;\n\nCREATE TABLE messages (\n    id INT PRIMARY KEY AUTO_INCREMENT,\n    user_message TEXT NOT NULL,\n    bot_reply TEXT NOT NULL,\n    timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\n```\n\n### Start the backend server:\n\n```bash\nnpm run dev\n```\n---\n\n## Frontend Setup\n\n### Navigate to the frontend directory:\n\n```bash\ncd ../client\n```\n\n### Install frontend dependencies:\n\n```bash\nnpm install\n```\n\n### Start the frontend server:\n\n```bash\nnpm run dev\n```\n\n## Usage\n\n- Open your browser and navigate to the frontend URL (default is http://localhost:5173).\n- Type a message in the input box and press Enter or click the Send button.\n- The bot will respond, and the conversation will be displayed in the chat window.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjatindhamija816%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjatindhamija816%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjatindhamija816%2Fchatbot/lists"}