This is a full-stack AI-powered chatbot application built using:
🔧 ReactJS for the frontend
☕ Spring Boot (Java) for the backend
🐘 PostgreSQL as the database
🤖 Optional integration with AI (OpenAI/GPT-like models)
Live AI-powered chat interface
Stores chat messages in PostgreSQL
JSON-based API communication between frontend and backend
Scalable architecture using Spring Boot services and DTOs
React hooks and Axios for efficient frontend interactions
Layer | Stack |
---|---|
Frontend | ReactJS, Axios, CSS |
Backend | Spring Boot, JPA, Lombok |
AI | Spring AI |
Database | PostgreSQL |
Build Tools | Maven, npm |
✅ Prerequisites
Java 17+ Maven PostgreSQL running locally or on docker
spring.datasource.url=jdbc:postgresql://localhost:5432/chatbot
spring.datasource.username=postgres
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# OpenAI Key
spring.ai.openai.api-key=${OPEN_AI_KEY}
✅ Prerequisites
Node.js npm or yarn
🔧 Install & Run
cd frontend
npm install
npm start
Ensure axios points to the backend URL:
const BASE_URL = "http://localhost:8080/api/chat";
User authentication (JWT)
Chat history with pagination
Voice input
Multi-language support
Developed by Sanjay Mehta
Feel free to contribute or fork the repo.