-
Notifications
You must be signed in to change notification settings - Fork 193
Add backend and Enhance features (RAG ChatBot, Darkmode, Embedded Map, Login Page, Admin Dashboard, Dynamic Product View, Mongodb Dtatabase) #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
change file structure and add Flask backend
Add chatbot feature with UI
…ion, product listings, testimonials, and footer
chatbot functionality, session management and API integration
Replaced actual API key with placeholder text.
Implement chatbot functionality with session management and API integ…
Merge pull request #7 from PasinduGunathilake/pasindu_dev
Added Embeded Google map for footer
- Implemented login, registration, and password reset functionality in login.html. - Enhanced product.html with dynamic product details, stock status, and specifications. - Created user_dashboard.html for user account management and navigation. - Added API tests in test_api.py to verify product retrieval and cart functionality. - Developed connection diagnostics in test_connections.py for MongoDB, SMTP, and Gemini API. - Introduced end-to-end tests in test_e2e.py for product insertion, user login, and cart operations.
feat: Add user authentication and dashboard features
Updated the README to enhance clarity and add features.
Remove placeholder for GEMINI_API_KEY from .env file
❌ Deploy Preview for edem-phone failed.
|
|
This pull request introduces several significant improvements and additions across the backend and data layers of the project, focusing on chatbot integration, database management utilities, data consistency, and environment configuration. The most important changes are summarized below: Backend & Chatbot Integration:
Database Utilities:
Data & Static Assets Consistency:
Environment & Project Configuration:
Frontend JavaScript:
These changes collectively enhance the backend chatbot capabilities, improve developer experience with better environment and database management, ensure data consistency, and prepare the codebase for further frontend or backend evolution. |
This pull request introduces several new backend utilities for environment configuration, chatbot integration, and database management, as well as improvements to product data and frontend settings. The most significant changes include the addition of a Gemini-powered chatbot backend, scripts for MongoDB user management, a new environment variable template, and updates to product categorization and images.
Backend and Environment Setup:
.env.exampleas a template for environment variables, including configuration for Gemini API, Flask, MongoDB, and SMTP, with clear setup instructions.chatbot_backend.py, integrating Google Gemini via LangChain for a retrieval-augmented chatbot with session-based history and a structured JSON checkout flow.Database Utilities:
check_users.pyfor checking MongoDB connection and listing users, including guidance for creating an admin user.create_admin.pyto create or update an admin user in MongoDB, securely hashing the password.Product Data and Categorization:
data/products.jsonto standardize image paths, correct product categories (e.g., "Mobile phone", "Headphone", "Laptops"), and add new laptop products.data/mobile_phones.csvwith detailed specs and pricing for a wide range of mobile phones.Frontend and Configuration:
.vscode/settings.jsonto clean up project-specific editor settings.js/index.js, possibly for a future rewrite or deprecation.