Skip to content

riya-rjha/TrendSpire-E-CommerceSite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 

Repository files navigation

TrendSpire

TrendSpire is an e-commerce platform tailored for fashion enthusiasts. This application allows users to explore the latest fashion trends and purchase items. It also features Ivy, a chatbot that provides fashion-related advice, helping users stay trendy.

Features

  • Fashion Products: Browse through a curated list of fashion products and accessories.
  • Ivy Chatbot: Get fashion-related advice in real-time. Ivy is trained to offer only fashion-specific insights.
  • User Authentication: Secure login and registration system for personalized shopping experiences.
  • Add to Cart: Users can add products to their cart for a streamlined checkout process.
  • Checkout Page: A dedicated page for reviewing and completing purchases.
  • Favorites: Save favorite items for future browsing.

Project Structure

This repository is split into two main directories:

  1. project/: Contains the main e-commerce application.

    • server/: Backend logic for handling user authentication, product browsing, order processing, cart, and favorite functionalities.
    • client/: Frontend built with modern web technologies for a smooth user experience.
  2. chatbot/:

    • server/: Contains Ivy's chatbot server, providing real-time fashion advice.

Getting Started

Prerequisites

Ensure you have the following installed:

Setting up the .env

project/server/.env

PORT=XXXX
MONGODBURL=""
FRONTEND_URL=""
IP_URL=""

project/client/.env

VITE_baseURL=""
VITE_CHATBOT_URL=""

chatbot/server/.env

API_KEY=""

Installation

  1. Clone the repository:

    git clone https://github.com/riya-rjha/TrendSpire.git
    cd TrendSpire
  2. Navigate to the project directory to install dependencies for the e-commerce platform:

    cd project
    cd server
    npm install
    cd project
    cd client
    npm install
  3. Navigate to the chatbot directory to install dependencies for the Ivy chatbot:

    cd ../chatbot
    cd server
    npm install

Running the Application

E-commerce Platform

  1. Start the backend server:

    cd project/server
    npm start
  2. Start the frontend client:

    cd ../client
    npm run dev

Ivy Chatbot

  1. Start the chatbot server:

    cd chatbot/server
    npm start

The chatbot will be running, and you can integrate it into the frontend client.

Tech Stack

  • Frontend: React.js, Tailwind CSS
  • Backend: Node.js, Express
  • Database: MongoDB
  • Chatbot: Node.js, Open AI API

Dependencies

project/server

   "dependencies": {
   "bcrypt": "^5.1.1",
   "cors": "^2.8.5",
   "dotenv": "^16.4.5",
   "express": "^4.19.2",
   "firebase": "^10.12.4",
   "jsonwebtoken": "^9.0.2",
   "mongodb": "^6.8.0",
   "mongoose": "^8.5.2",
   "nodemon": "^3.1.4"
   }

project/client

  "dependencies": {
    "axios": "^1.7.8",
    "notistack": "^3.0.1",
    "react": "^18.3.1",
    "react-cookie": "^7.2.0",
    "react-dom": "^18.3.1",
    "react-icons": "^5.3.0",
    "react-router-dom": "^6.25.1"
  }