Main Home Page
Route: / — Hero banner, featured brands, flash sales, new arrivals, top categories, testimonials.
A modern, responsive e-commerce platform built with Next.js 15, React 19, TypeScript, and Tailwind CSS.
Install Node.js 18.0+ and a package manager: npm, yarn, pnpm or bun.
Step 1: Clone the repository
git clone <repository-url>
cd ruby-reactStep 2: Install dependencies
npm install
# or
yarn install
# or
pnpm install
# or
bun installStep 3: Start the development server
Navigate to http://localhost:3000
npm run devDevelopment build
npm run devProduction build
npm run build
npm startLinting
npm run lintruby-react/
├── app/
│ ├── (auth)/
│ ├── api/
│ ├── blog/
│ ├── cart/
│ ├── checkout/
│ ├── home/
│ ├── pages/
│ ├── products/
│ ├── shop/
│ ├── wishlist/
│ ├── globals.css
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ ├── account/
│ ├── blog/
│ ├── cards/
│ ├── cart/
│ ├── checkout/
│ ├── filter/
│ ├── footer/
│ ├── header/
│ ├── product/
│ ├── skeleton/
│ └── ui/
├── constants/
├── data/
├── hooks/
├── lib/
├── service/
├── store/
├── types/
├── utils/
├── views/
├── next.config.ts
├── package.json
├── tsconfig.json
└── README.mdRoute: / — Hero banner, featured brands, flash sales, new arrivals, top categories, testimonials.
Route: /home/beauty-skin-care — Beauty banner, shop by type, today's top picks, unbeatable beauty, client success stories.
Route: /home/book-store — Book store banner, book deals, shop categories, new releases, recommended books.
Route: /home/electronic — Electronics banner, top categories, trending products, brands, today's picks.
Route: /home/furniture — Furniture banner, best selling furniture, explore collection, happy customers.
Route: /home/men-fashion — Men's fashion banner, categories, new collection, coming soon products.
Route: /home/sport-accessory — Sports banner, latest sneakers, apparel section, top picks, testimonials.
Route: /home/trending-fashion — Trending fashion banner, categories, new arrivals, deal of the day.
Route: /home/women-fashion — Women's fashion banner, best selling, top picks, top brands, testimonials.
Key endpoints
/api/category/...
/api/collection/...
/api/electronics/...
/api/post/...
/api/product/...
/api/sport/...
/api/top-categories/...
/api/wishlist/...Typical data flow: Next.js API routes handle server-side logic → Service layer functions for API calls with error handling → React Query for client-side data fetching, caching, and synchronization → UI components consume data with loading and error states.
This project is licensed under the MIT License.