A modern e-commerce web application built with [Next.js].
- Responsive design
- Product catalog with categories
- Shopping cart functionality
- Secure checkout process
- User authentication
- Admin dashboard for product management
- Order tracking
- Payment integration
- Frontend: Next.js
- CMS: Sanity.io
- Styling: Tailwind CSS
- Payment: Stripe
- Database: MongoDB
- Clone the repository:
git clone https://github.com/yourusername/ecommerce.git
cd ecommerce- Install dependencies:
npm install- Set up environment variables:
Create a
.envfile in the root directory and add:
NEXT_PUBLIC_SANITY_TOKEN=your_sanity_token
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
STRIPE_SECRET_KEY=your_stripe_secret_key
- Run the development server:
npm run devecommerce/
├── components/ # React components
├── pages/ # Next.js pages
├── public/ # Static assets
├── sanity/ # Sanity CMS configuration
├── styles/ # CSS styles
└── lib/ # Utility functions
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License.