A modern, full-stack e-commerce platform specifically designed for baby products, built with cutting-edge technologies and best practices.
Babymart is a comprehensive e-commerce solution featuring four main applications:
- Admin Dashboard - Manage products, orders, and analytics
- Client Website - Customer-facing shopping experience
- Mobile App - Native mobile shopping application
- Backend Server - RESTful API with comprehensive features
Babymart-yt/
โโโ admin/ # React + Vite Admin Dashboard
โโโ client/ # Next.js Customer Website
โโโ mobileapp/ # React Native Mobile App
โโโ server/ # Node.js + Express API Backend
- Admin Dashboard: React 18 + TypeScript + Vite + TailwindCSS + shadcn/ui
- Client Website: Next.js 14 + TypeScript + TailwindCSS + shadcn/ui
- Mobile App: React Native + TypeScript + Expo
- Server: Node.js + Express.js + MongoDB + JWT Authentication
- File Storage: Cloudinary integration
- API Documentation: Swagger/OpenAPI
- State: Zustand for all applications
- UI Components: Radix UI, shadcn/ui, Lucide React icons
- Forms: React Hook Form + Zod validation
- HTTP Client: Axios (admin/mobile), Fetch API (client)
- Node.js 18+
- npm or yarn
- MongoDB (local or Atlas)
- Cloudinary account (for image storage)
git clone https://github.com/noorjsdivs/Babymart-yt.git
cd Babymart-ytcd server
npm install
cp .env.example .env # Configure your environment variables
npm run dev # Starts on http://localhost:8000cd client
npm install
npm run dev # Starts on http://localhost:3000cd admin
npm install
npm run dev # Starts on http://localhost:5173cd mobileapp
npm install
npm start # Follow React Native CLI instructionsPurpose: Complete administrative control panel
- Technology: React + Vite + TypeScript
- Features: Product management, order processing, analytics, user management
- Access:
http://localhost:5173 - Start Command:
npm run dev
What you'll see: A clean admin interface with placeholder content explaining the admin dashboard purpose. Simply remove the placeholder text and start building your admin features.
Purpose: Customer-facing e-commerce website
- Technology: Next.js + TypeScript
- Features: Product browsing, shopping cart, user authentication, order tracking
- Access:
http://localhost:3000 - Start Command:
npm run dev
What you'll see: A modern e-commerce homepage with project information. Remove the intro text to start customizing for your needs.
Purpose: Native mobile shopping experience
- Technology: React Native + TypeScript
- Features: Mobile-optimized shopping, push notifications, offline support
- Start Command:
npm start
What you'll see: A React Native app ready for mobile e-commerce development with placeholder content explaining the mobile app structure.
Purpose: RESTful API backend
- Technology: Node.js + Express + MongoDB
- Features: Authentication, product management, order processing, file uploads
- Access:
http://localhost:8000 - Start Command:
npm run dev
API Documentation: Visit http://localhost:8000/api-docs for Swagger documentation
Each application requires specific environment variables:
NODE_ENV=development
PORT=8000
MONGODB_URI=mongodb://localhost:27017/Babymart
JWT_SECRET=your-jwt-secret
CLOUDINARY_NAME=your-cloudinary-name
CLOUDINARY_API_KEY=your-api-key
CLOUDINARY_API_SECRET=your-api-secret
CLIENT_URL=http://localhost:3000
ADMIN_URL=http://localhost:5173NEXT_PUBLIC_API_URL=http://localhost:8000/api
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=your-cloudinary-nameVITE_API_URL=http://localhost:8000/api
VITE_CLOUDINARY_CLOUD_NAME=your-cloudinary-nameSee configuration.md for complete environment setup details.
- ๐ Analytics & Reports
- ๐ฆ Product Management (CRUD)
- ๐๏ธ Order Management
- ๐ฅ User Management
- ๐ท๏ธ Category & Brand Management
- ๐ธ Image Upload & Management
- ๐ณ Payment Processing
- ๐ Role-based Access Control
- ๐ Shopping Cart & Checkout
- ๐ Product Search & Filtering
- ๐ค User Authentication & Profile
- ๐ฑ Responsive Design
- โญ Product Reviews & Ratings
- ๐ Wishlist Functionality
- ๐ Order History
- ๐ฏ Category Browsing
- ๐ฑ Native Mobile Experience
- ๐ Push Notifications
- ๐ด Offline Support
- ๐ Location Services
- ๐ท Camera Integration
- ๐ Sync with Web Platform
- ๐ JWT Authentication
- ๐ก RESTful API Design
- ๐ MongoDB Integration
- โ๏ธ Cloudinary File Storage
- ๐ Comprehensive Logging
- ๐ Request Validation
- ๐ Swagger Documentation
All applications are configured for local development with hot reload enabled.
Ready for deployment on:
- Frontend: Vercel, Netlify, or any static hosting
- Backend: Railway, Render, DigitalOcean, AWS
- Database: MongoDB Atlas
- Mobile: App Store & Google Play Store
- 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
- Setup Guide: See
setup.mdfor detailed installation instructions - Configuration: See
configuration.mdfor environment variables - Architecture: See
baseContext.mdfor detailed project structure - API Docs: Available at
http://localhost:8000/api-docswhen server is running
- Multi-language support
- Advanced analytics dashboard
- AI-powered product recommendations
- Social media integration
- Advanced inventory management
- Multi-vendor marketplace support
If you have any questions or need help with setup:
- ๐ง Create an issue in this repository
- ๐ Check the documentation files
- ๐ฌ Join our community discussions
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with modern web technologies
- Designed for scalability and performance
- Following industry best practices
- Ready for production deployment
Happy Coding! ๐
Note: This is a complete e-commerce platform template. Remove the placeholder content from each application's homepage and start building your custom features!