ShopNex is a modern e-commerce platform built with React and Vite. It provides a seamless shopping experience with features like product browsing, detailed product pages, a shopping cart, and contact forms.
- Home Page: A visually appealing homepage showcasing featured products.
- Product Details: Detailed product pages with descriptions, prices, and an "Add to Cart" feature.
- Contact Page: A stylish contact form for users to reach out.
- About Us Page: Learn more about the mission and vision of ShopNex.
- Products Page: A grid layout showcasing all available products.
- Responsive Design: Fully responsive and optimized for all devices.
- Smooth Animations: Powered by
framer-motionfor a modern UI experience.
- Frontend: React, Vite
- Styling: Tailwind CSS
- Routing: React Router
- Animations: Framer Motion
- Icons: React Icons
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/roysreejan/shopnex
-
Navigate to the project directory:
cd shopnex -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to:
http://localhost:5173
shopnex/
├── src/
│ ├── components/ # Reusable components
│ │ ├── Header.jsx # Header component
│ │ ├── Footer.jsx # Footer component
│ │ ├── Sidebar.jsx # Sidebar component
│ │ └── ... # Other reusable components
│ ├── pages/ # Page components
│ │ ├── Home.jsx # Home page
│ │ ├── Products.jsx # Products page
│ │ ├── ProductDetails.jsx # Product details page
│ │ ├── Contact.jsx # Contact page
│ │ ├── About.jsx # About Us page
│ │ └── ... # Other pages
│ ├── contexts/ # Context API for state management
│ │ ├── ProductContext.jsx # Product context
│ │ ├── CartContext.jsx # Cart context
│ │ └── SidebarContext.jsx # Sidebar context
│ ├── assets/ # Static assets like images and logos
│ │ ├── logo.svg # Logo file
│ │ └── ... # Other assets
│ ├── App.jsx # Main application component
│ ├── main.jsx # Entry point of the application
│ └── index.css # Global CSS styles
├── public/ # Public assets
│ ├── favicon.ico # Favicon
│ └── ... # Other public files
├── README.md # Project documentation
├── package.json # Project dependencies and scripts
├── vite.config.js # Vite configuration file
├── .gitignore # Git ignore file
└── LICENSE # License file (if applicable)
This project is configured for deployment on Vercel. The vercel.json file ensures that all routes are rewritten to index.html for a single-page application.
The live project is available at: https://shopnexx.vercel.app/
To deploy:
-
Install the Vercel CLI:
npm install -g vercel
-
Deploy the project:
vercel
npm run dev: Start the development server.npm run build: Build the project for production.npm run preview: Preview the production build locally.npm run lint: Run ESLint to check for code quality issues.
-
Home Page
The homepage displays featured products and a hero section. -
Products Page
A grid layout showcasing all available products. -
Product Details Page
Detailed information about a specific product, including price, description, and an "Add to Cart" button. -
Contact Page
A contact form for users to send inquiries. -
About Us Page
Information about the mission and vision of ShopNex.
- Built with ❤️ using React and TailwindCSS.
- Icons and images sourced from the project's assets folder.