DiverseDeal is an e-commerce website focused on showcasing and selling mobile phones, tablets, and watches from various brands. The website allows users to search, categorize, and sort products, providing a seamless shopping experience.
- Product Search: Search for products by name.
- Categorization:
- Filter products by brand name.
- Categorize by price range.
- Sort by category (mobile, tablet, watch).
- Sorting:
- Sort products by price (Low to High, High to Low).
- Sort products by date (Newest first).
- User Authentication: Secure user login and registration using Firebase.
Ensure you have the following installed on your system:
-
Clone the Repository:
git clone https://github.com/tazim5032/diverse-deal cd DiverseDeal
-
Backend Setup:
- Navigate to the
server
directory:cd server
- Install the dependencies:
npm install
- Create a
.env
file in theserver
directory and add your environment variables:MONGO_URI=your_mongo_db_connection_string PORT=5000 FIREBASE_API_KEY=your_firebase_api_key
- Start the backend server:
npm start
- Navigate to the
-
Frontend Setup:
- Navigate to the
client
directory:cd ../client
- Install the dependencies:
npm install
- Create a
.env
file in theclient
directory and add your Firebase configuration:REACT_APP_FIREBASE_API_KEY=your_firebase_api_key REACT_APP_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain REACT_APP_FIREBASE_PROJECT_ID=your_firebase_project_id REACT_APP_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket REACT_APP_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id REACT_APP_FIREBASE_APP_ID=your_firebase_app_id
- Start the frontend development server:
npm start
- Navigate to the
-
Access the Website:
- Open your browser and navigate to
http://localhost:3000
.
- Open your browser and navigate to
- Ensure MongoDB is running on your local machine or use a cloud MongoDB service like MongoDB Atlas.
- Start the backend server as described above.
- Start the frontend server as described above.
- Access the site at
http://localhost:3000
.
- Frontend: React.js
- Backend: Express.js, Node.js
- Database: MongoDB
- Authentication: Firebase
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.