Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ SunCart

A modern summer-themed e-commerce web application built with Next.js 16, React 19, HeroUI & Better Auth

Live Demo Next.js React


🌟 Overview

SunCart is a fully responsive e-commerce platform focused on summer essentials β€” from UV protection sunglasses to portable fans and beach gear. It features smooth animations, secure authentication, and a warm golden amber UI design.


✨ Features

  • 🏠 Home Page β€” Hero banner with Summer Sale 2026 offers, popular products, summer care tips blog section, and top brands carousel
  • πŸ›οΈ Products Page β€” Full catalog of summer essentials with ratings, stock info, categories, and pricing
  • πŸ“„ Product Details β€” Individual product pages with detailed information
  • πŸ‘€ User Authentication β€” Sign up & login with Better Auth (email/password)
  • πŸ™ My Profile β€” Protected user profile page
  • πŸ’« Smooth Animations β€” animate.css powered transitions throughout the UI
  • 🎠 Brand Carousel β€” Swiper.js powered infinite brand slider
  • πŸ“± Fully Responsive β€” Mobile-first layout with Tailwind CSS v4

πŸ›οΈ Product Categories

Category Example Products
Accessories UV Protection Sunglasses, Cooling Sports Cap
Skincare SPF 50+ Sunscreen, Aloe Vera After Sun Gel
Outdoor Hydration Water Bottle
Lifestyle Summer Beach Towel
Electronics Portable Mini Fan
Travel Lightweight Summer Backpack
Footwear Waterproof Beach Sandals

πŸ› οΈ Tech Stack

Category Technology
Framework Next.js 16.2.9 (App Router)
UI Library React 19
Component Library HeroUI v3
Styling Tailwind CSS v4
Animation animate.css
Authentication Better Auth v1.6
Database MongoDB v7
DB Adapter @better-auth/mongo-adapter
Slider Swiper.js v12
Icons React Icons, Lucide React, Iconify

πŸ“ Project Structure

suncart/
β”œβ”€β”€ public/               # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/              # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ api/          # Auth API routes
β”‚   β”‚   β”œβ”€β”€ products/     # Products listing & detail pages
β”‚   β”‚   β”œβ”€β”€ login/        # Login page
β”‚   β”‚   β”œβ”€β”€ register/     # Register page
β”‚   β”‚   β”œβ”€β”€ my-profile/   # Protected profile page
β”‚   β”‚   β”œβ”€β”€ privacy/      # Privacy policy page
β”‚   β”‚   └── page.js       # Home page
β”‚   β”œβ”€β”€ components/       # Reusable UI components
β”‚   └── lib/              # Auth config & utilities
β”œβ”€β”€ next.config.mjs
β”œβ”€β”€ package.json
└── tailwind.config.js

πŸš€ Getting Started

Prerequisites

  • Node.js v18+
  • MongoDB Atlas account
  • npm / yarn / pnpm

Installation

  1. Clone the repository
git clone https://github.com/Morshedul-developer/suncart.git
cd suncart
  1. Install dependencies
npm install
  1. Set up environment variables

Create a .env.local file in the root:

MONGODB_URI=your_mongodb_connection_string
BETTER_AUTH_SECRET=your_secret_key
BETTER_AUTH_URL=http://localhost:3000

⚠️ If MongoDB Atlas connection fails, try switching to Google DNS (8.8.8.8) or use a mobile hotspot.

  1. Run the development server
npm run dev

Open http://localhost:3000 in your browser.


🌐 Deployment

Deployed on Vercel. To deploy your own instance:

  1. Push your code to GitHub
  2. Import at vercel.com/new
  3. Add environment variables in the Vercel dashboard
  4. Deploy!

πŸ‘¨β€πŸ’» Author

Morshedul Islam Nijhum

GitHub

About

πŸ›’ A summer-themed e-commerce web app built with Next.js 16, React 19, HeroUI & Better Auth. Features product catalog, user authentication, smooth animations, and a golden amber UI design.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages