Add backend and Enhance features (RAG ChatBot, Darkmode, Embedded Map, Login Page, Admin Dashboard, Dynamic Product View, Mongodb Dtatabase)#26
Open
PasinduGunathilake wants to merge 30 commits intowpcodevo:masterfrom
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.
|
Author
|
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.