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.
๐ Visit Tech Net Store | Backend Repo
Experience the future of wearable technology with our complete Haylou smartwatch collection!
- 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
- 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)
- 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
- 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
- Runtime: Node.js
- Framework: Express.js
- Database: MongoDB with native driver
- Environment: dotenv for configuration
- CORS: Enabled for cross-origin requests
- TypeScript: Full type safety
- ESLint: Code linting and formatting
- Prettier: Code formatting
- Nodemon: Backend development server
- Price: $48.79
- Features: Bluetooth 5.2, secure communication, 1.47" AMOLED display
- Rating: โญโญโญโญโญ (5/5)
- Status: In Stock
- Price: $63.07
- Features: Advanced fitness tracking, multiple sport modes
- Rating: โญโญโญโญโญ (5/5)
- Status: In Stock
- 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)
Before you begin, ensure you have the following installed:
- Node.js (>= 18.x) - Download here
- MongoDB (local instance or MongoDB Atlas)
- Git - Download here
- npm or yarn package manager
-
Clone the Repository
git clone https://github.com/yourusername/technet-react-redux.git cd technet-react-redux
-
Backend Setup
# Navigate to backend directory (if separate) cd backend # Install backend dependencies npm install # Create .env file touch .env
-
Backend Environment Configuration
Create a
.env
file in the backend directory:# MongoDB Configuration DB_USER=your_db_username DB_PASS=your_db_user_password
-
Frontend Setup
# Navigate to frontend directory (or root if monorepo) cd .. # if you were in backend directory # Install frontend dependencies npm install
-
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
-
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
-
Access the Application
Open http://localhost:3000 in your browser to start shopping!
Frontend Build:
npm run build # TypeScript compilation + Vite build
npm run preview # Preview production build locally
Backend Production:
npm start # Run production server
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
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.
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
- Email/password authentication
- Social login options (Google, Facebook)
- Secure token-based authentication
- Protected routes and user sessions
- CORS configuration for secure cross-origin requests
- Environment variable protection
- Input validation and sanitization
- Secure API endpoints
- Mobile-first design approach
- Responsive breakpoints:
sm
: 640px and upmd
: 768px and uplg
: 1024px and upxl
: 1280px and up
- Adaptive layouts for all screen sizes
- Touch-friendly interface elements
- Optimized images and assets
- Consistent color palette and typography
- Smooth animations with Framer Motion
- Interactive hover states and transitions
- Accessibility-first component design
- Intuitive navigation and product discovery
- Fast search and filtering capabilities
- Seamless checkout process
- Real-time cart updates
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
- ESLint for code linting and consistency
- Prettier for code formatting
- TypeScript for type safety
- Husky for git hooks (if configured)
npm run build # Creates optimized production build in /dist
- Express.js server ready for deployment
- Environment variables configuration
- MongoDB Atlas integration
- Unit Testing: Vitest + React Testing Library
- E2E Testing: Playwright or Cypress
- Component Testing: Storybook
- API Testing: Jest + Supertest
- ๐ฑ 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
- CORS Errors: Ensure backend CORS is configured for frontend URL
- Firebase Config: Verify all Firebase environment variables are set
- MongoDB Connection: Check MongoDB URI and network connectivity
- Port Conflicts: Default ports are 5173 (frontend) and 8000 (backend)
# Check if ports are in use
netstat -an | grep :5173
netstat -an | grep :8000
# Clear npm cache if needed
npm cache clean --force
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- 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
- GitHub Issues: Report bugs and feature requests
- Documentation: Comprehensive README and code comments
- Discord/Slack: Development community chat
- Email: contact@technet-store.com
- Business Inquiries: business@technet-store.com
- 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.