Skip to content

A modern e-commerce platform specializing in Haylou smartwatches and wearable technology. Built with cutting-edge web technologies and hosted on Netlify for optimal performance.

Notifications You must be signed in to change notification settings

aihridoy/technet

Repository files navigation

โŒš Tech Net - Haylou Smartwatch E-commerce Platform

Tech Net Haylou Store

Welcome to Tech Net, your premier destination for cutting-edge Haylou smartwatch technology! This modern e-commerce platform is built with React, Redux Toolkit, and TypeScript on the frontend, powered by Express.js and MongoDB on the backend.


๐ŸŒŸ Live Demo

๐Ÿ”— Visit Tech Net Store | Backend Repo

Experience the future of wearable technology with our complete Haylou smartwatch collection!


โœจ Key Features

๐Ÿ›’ E-commerce Functionality

  • Complete product catalog with detailed specifications
  • Advanced filtering system (price range, availability)
  • Shopping cart with Redux state management
  • Secure checkout process with Firebase Authentication
  • Order tracking and history management
  • User account dashboard with purchase history

๐Ÿ“ฑ Product Showcase

  • Haylou Solar Pulse Series - Flagship collection with AMOLED displays
  • Haylou RS Series - Performance-focused smartwatches ($63.07)
  • Haylou RT Series - Everyday wellness companions ($38.99)
  • Haylou GS Series - Classic design meets modern technology ($32.38)
  • Haylou GST Series - Premium features at affordable prices ($31.99)

๐Ÿ” User Experience

  • Firebase Authentication integration
  • Personalized user accounts and profiles
  • Order history tracking with detailed breakdowns
  • Secure payment processing
  • Real-time state management with Redux
  • Responsive design with Tailwind CSS

๐Ÿ› ๏ธ Tech Stack

Frontend

  • Framework: React 18 with TypeScript
  • State Management: Redux Toolkit + React Redux
  • Build Tool: Vite for fast development and building
  • Styling: Tailwind CSS with custom animations
  • UI Components: Radix UI primitives
  • Routing: React Router DOM v6
  • Icons: Lucide React + React Icons
  • Animations: Framer Motion
  • Forms: React Hook Form
  • Authentication: Firebase Auth

Backend

  • Runtime: Node.js
  • Framework: Express.js
  • Database: MongoDB with native driver
  • Environment: dotenv for configuration
  • CORS: Enabled for cross-origin requests

Development Tools

  • TypeScript: Full type safety
  • ESLint: Code linting and formatting
  • Prettier: Code formatting
  • Nodemon: Backend development server

๐Ÿš€ Featured Products

๐Ÿ† Haylou Solar Pulse RT3

  • Price: $48.79
  • Features: Bluetooth 5.2, secure communication, 1.47" AMOLED display
  • Rating: โญโญโญโญโญ (5/5)
  • Status: In Stock

โšก Haylou RS3

  • Price: $63.07
  • Features: Advanced fitness tracking, multiple sport modes
  • Rating: โญโญโญโญโญ (5/5)
  • Status: In Stock

๐ŸŽฏ Additional Models

  • Haylou GST: $31.99 (Rating: 4/5)
  • Haylou GS: $32.38 (Rating: 3/5)
  • Haylou RT2: $38.99 (Rating: 2/5)
  • Haylou RS4 Plus: $54.84 (Rating: 4/5)

๐Ÿš€ Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

Installation Steps

  1. Clone the Repository

    git clone https://github.com/yourusername/technet-react-redux.git
    cd technet-react-redux
  2. Backend Setup

    # Navigate to backend directory (if separate)
    cd backend
    
    # Install backend dependencies
    npm install
    
    # Create .env file
    touch .env
  3. Backend Environment Configuration

    Create a .env file in the backend directory:

    # MongoDB Configuration
    DB_USER=your_db_username
    DB_PASS=your_db_user_password
  4. Frontend Setup

    # Navigate to frontend directory (or root if monorepo)
    cd ..  # if you were in backend directory
    
    # Install frontend dependencies
    npm install
  5. Frontend Environment Configuration

    Create a .env.local file in the frontend root:

    # API Configuration
    VITE_API_BASE_URL=http://localhost:8000
    
    # Firebase Configuration
    VITE_FIREBASE_API_KEY=your_firebase_api_key
    VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
    VITE_FIREBASE_PROJECT_ID=your_project_id
    VITE_FIREBASE_STORAGE_BUCKET=your_project.firebasestorage.app
    VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
    VITE_FIREBASE_APP_ID=your_app_id
  6. Start Development Servers

    Backend (in backend directory or separate terminal):

    npm run dev  # Uses nodemon for auto-restart
    # Backend runs on http://localhost:8000

    Frontend (in frontend directory or main terminal):

    npm run dev  # Uses Vite dev server
    # Frontend runs on http://localhost:3000
  7. Access the Application

    Open http://localhost:3000 in your browser to start shopping!

Production Build

Frontend Build:

npm run build      # TypeScript compilation + Vite build
npm run preview    # Preview production build locally

Backend Production:

npm start          # Run production server

๐Ÿ“ Project Structure

technet-react-redux/
โ”œโ”€โ”€ src/                           # Frontend source code
โ”‚   โ”œโ”€โ”€ assets/                    # Static assets (images, icons)
โ”‚   โ”œโ”€โ”€ components/                # Reusable React components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/                    # Radix UI styled components
โ”‚   โ”‚   โ”œโ”€โ”€ ProductCard/           # Product display components
โ”‚   โ”‚   โ”œโ”€โ”€ Cart/                  # Shopping cart components
โ”‚   โ”‚   โ””โ”€โ”€ Layout/                # Page layout components
โ”‚   โ”œโ”€โ”€ layouts/                   # Page layout wrappers
โ”‚   โ”œโ”€โ”€ lib/                       # Utility functions and configurations
โ”‚   โ”œโ”€โ”€ pages/                     # Main page components
โ”‚   โ”‚   โ”œโ”€โ”€ Home/                  # Homepage
โ”‚   โ”‚   โ”œโ”€โ”€ Products/              # Product listing and details
โ”‚   โ”‚   โ”œโ”€โ”€ Checkout/              # Checkout process
โ”‚   โ”‚   โ””โ”€โ”€ Account/               # User account pages
โ”‚   โ”œโ”€โ”€ redux/                     # Redux store configuration
โ”‚   โ”‚   โ”œโ”€โ”€ store.ts               # Store setup
โ”‚   โ”‚   โ”œโ”€โ”€ slices/                # Redux slices
โ”‚   โ”‚   โ””โ”€โ”€ api/                   # API slice configurations
โ”‚   โ”œโ”€โ”€ routes/                    # React Router configuration
โ”‚   โ”œโ”€โ”€ types/                     # TypeScript type definitions
โ”‚   โ”œโ”€โ”€ App.tsx                    # Main App component
โ”‚   โ”œโ”€โ”€ main.tsx                   # Application entry point
โ”‚   โ””โ”€โ”€ index.css                  # Global styles (Tailwind imports)
โ”œโ”€โ”€ backend/                       # Backend server code
โ”‚   โ”œโ”€โ”€ routes/                    # Express routes
โ”‚   โ”œโ”€โ”€ models/                    # MongoDB models
โ”‚   โ”œโ”€โ”€ middleware/                # Express middleware
โ”‚   โ”œโ”€โ”€ controllers/               # Route controllers
โ”‚   โ””โ”€โ”€ index.js                   # Server entry point
โ”œโ”€โ”€ public/                        # Static public assets
โ”œโ”€โ”€ dist/                          # Built frontend files
โ”œโ”€โ”€ target/                        # Build artifacts
โ”œโ”€โ”€ .env.local                     # Frontend environment variables
โ”œโ”€โ”€ .eslintrc.cjs                  # ESLint configuration
โ”œโ”€โ”€ .gitignore                     # Git ignore rules
โ”œโ”€โ”€ .prettierrc.json               # Prettier configuration
โ”œโ”€โ”€ index.html                     # HTML template
โ”œโ”€โ”€ package-lock.json              # Frontend dependencies lock
โ”œโ”€โ”€ package.json                   # Frontend dependencies
โ”œโ”€โ”€ postcss.config.js              # PostCSS configuration
โ”œโ”€โ”€ tailwind.config.js             # Tailwind CSS configuration
โ”œโ”€โ”€ tsconfig.json                  # TypeScript configuration
โ”œโ”€โ”€ tsconfig.node.json             # TypeScript Node configuration
โ”œโ”€โ”€ vite.config.ts                 # Vite configuration
โ””โ”€โ”€ README.md                      # Project documentation

๐Ÿ”ง Key Technologies Deep Dive

๐ŸŽฏ Frontend Architecture

React 18 with TypeScript:

  • Modern React with Hooks and functional components
  • Full TypeScript integration for type safety
  • Vite for lightning-fast development experience

Redux Toolkit State Management:

// Example store slice
import { createSlice } from '@reduxjs/toolkit';

const cartSlice = createSlice({
  name: 'cart',
  initialState: { items: [], total: 0 },
  reducers: {
    addItem: (state, action) => {
      // Redux Toolkit uses Immer under the hood
    },
  },
});

Radix UI Components:

  • Accessible, unstyled UI primitives
  • Custom styling with Tailwind CSS
  • Components include: Dialog, Dropdown, Toast, etc.

โšก Backend Architecture

Express.js API:

// Example API endpoint
app.get('/api/products', async (req, res) => {
  try {
    const products = await db.collection('products').find().toArray();
    res.json(products);
  } catch (error) {
    res.status(500).json({ error: error.message });
  }
});

MongoDB Integration:

  • Native MongoDB driver
  • Document-based data storage
  • Scalable NoSQL architecture

๐Ÿ” Authentication & Security

Firebase Authentication

  • Email/password authentication
  • Social login options (Google, Facebook)
  • Secure token-based authentication
  • Protected routes and user sessions

Security Features

  • CORS configuration for secure cross-origin requests
  • Environment variable protection
  • Input validation and sanitization
  • Secure API endpoints

๐Ÿ“ฑ Responsive Design

Tailwind CSS Implementation

  • Mobile-first design approach
  • Responsive breakpoints:
    • sm: 640px and up
    • md: 768px and up
    • lg: 1024px and up
    • xl: 1280px and up

Component Responsiveness

  • Adaptive layouts for all screen sizes
  • Touch-friendly interface elements
  • Optimized images and assets

๐ŸŽจ UI/UX Features

Modern Design System

  • Consistent color palette and typography
  • Smooth animations with Framer Motion
  • Interactive hover states and transitions
  • Accessibility-first component design

User Experience

  • Intuitive navigation and product discovery
  • Fast search and filtering capabilities
  • Seamless checkout process
  • Real-time cart updates

๐Ÿ”„ Development Workflow

Scripts Available

Frontend:

npm run dev      # Start Vite development server
npm run build    # TypeScript compilation + production build
npm run lint     # ESLint code analysis
npm run preview  # Preview production build

Backend:

npm start        # Start production server
npm run dev      # Start development server with nodemon

Code Quality

  • ESLint for code linting and consistency
  • Prettier for code formatting
  • TypeScript for type safety
  • Husky for git hooks (if configured)

๐Ÿš€ Deployment

Frontend Deployment (Vercel/Netlify)

npm run build    # Creates optimized production build in /dist

Backend Deployment (Render/Railway/Vercel)

  • Express.js server ready for deployment
  • Environment variables configuration
  • MongoDB Atlas integration

๐Ÿงช Testing (Future Implementation)

Recommended Testing Stack

  • Unit Testing: Vitest + React Testing Library
  • E2E Testing: Playwright or Cypress
  • Component Testing: Storybook
  • API Testing: Jest + Supertest

๐Ÿ”ฎ Future Enhancements

  • ๐Ÿ“ฑ Progressive Web App (PWA): Offline functionality and app-like experience
  • ๐Ÿ” Advanced Search: Elasticsearch integration for powerful search
  • ๐Ÿ’ณ Payment Integration: Stripe/PayPal checkout implementation
  • ๐Ÿ“Š Analytics: Google Analytics and user behavior tracking
  • ๐ŸŒ Internationalization: Multi-language support with React i18n
  • ๐Ÿค– AI Recommendations: Machine learning-based product suggestions
  • ๐Ÿ“ฑ React Native App: Mobile companion application

๐Ÿ› Known Issues & Troubleshooting

Common Issues

  1. CORS Errors: Ensure backend CORS is configured for frontend URL
  2. Firebase Config: Verify all Firebase environment variables are set
  3. MongoDB Connection: Check MongoDB URI and network connectivity
  4. Port Conflicts: Default ports are 5173 (frontend) and 8000 (backend)

Debug Commands

# Check if ports are in use
netstat -an | grep :5173
netstat -an | grep :8000

# Clear npm cache if needed
npm cache clean --force

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ‘ฅ Team

  • Frontend Developer: React/Redux/TypeScript specialist
  • Backend Developer: Node.js/Express.js expert
  • UI/UX Designer: Modern design and user experience
  • DevOps Engineer: Deployment and infrastructure

๐Ÿ“ž Support & Contact

๐Ÿ›Ÿ Developer Support

๐Ÿ“ง Business Contact


๐Ÿ™ Acknowledgments

  • React Team for the amazing frontend framework
  • Redux Team for excellent state management
  • Tailwind CSS for utility-first CSS framework
  • Radix UI for accessible component primitives
  • Firebase for authentication and backend services
  • MongoDB for flexible document database
  • Vite for fast build tooling

Experience the Future of Wearable Technology with Tech Net! โŒšโœจ

Leading the future of wearable technology with innovative smartwatches that combine style, functionality, and cutting-edge features. Built with modern React, Redux, and TypeScript for the best developer and user experience.

About

A modern e-commerce platform specializing in Haylou smartwatches and wearable technology. Built with cutting-edge web technologies and hosted on Netlify for optimal performance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •