Skip to content

ronishpaudel/nextjs-ecommerce

Repository files navigation

E-Commerce Application

A modern e-commerce web application built with [Next.js].

Features

  • Responsive design
  • Product catalog with categories
  • Shopping cart functionality
  • Secure checkout process
  • User authentication
  • Admin dashboard for product management
  • Order tracking
  • Payment integration

Tech Stack

  • Frontend: Next.js
  • CMS: Sanity.io
  • Styling: Tailwind CSS
  • Payment: Stripe
  • Database: MongoDB

Getting Started

  1. Clone the repository:
git clone https://github.com/yourusername/ecommerce.git
cd ecommerce
  1. Install dependencies:
npm install
  1. Set up environment variables: Create a .env file 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
  1. Run the development server:
npm run dev

Project Structure

ecommerce/
├── components/     # React components
├── pages/         # Next.js pages
├── public/        # Static assets
├── sanity/       # Sanity CMS configuration
├── styles/       # CSS styles
└── lib/          # Utility functions

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages