Neitfoods

NeitFoods NutShop - Complete E-Commerce Platform

A fully functional ASP.NET Core MVC e-commerce website for selling premium nuts and dried fruits with user authentication, product management, shopping cart, and admin features.

🎯 Key Features

Customer Features

βœ… User Authentication

βœ… Shopping Experience

βœ… Product Reviews

βœ… Checkout & Orders

Admin Features

βœ… Admin Dashboard

βœ… Product Management

βœ… Order Management

πŸ“ Project Structure

NutShop/
β”œβ”€β”€ Controllers/
β”‚   β”œβ”€β”€ AccountController.cs       # User registration & login
β”‚   β”œβ”€β”€ AdminController.cs         # Admin dashboard & management
β”‚   β”œβ”€β”€ CartController.cs          # Shopping cart operations
β”‚   β”œβ”€β”€ CheckoutController.cs      # Order processing
β”‚   β”œβ”€β”€ HomeController.cs          # Home page
β”‚   └── ProductsController.cs      # Product browsing & reviews
β”œβ”€β”€ Models/
β”‚   β”œβ”€β”€ User.cs                    # User account model
β”‚   β”œβ”€β”€ Product.cs                 # Product model
β”‚   β”œβ”€β”€ Category.cs                # Product category
β”‚   β”œβ”€β”€ CartItem.cs                # Shopping cart item
β”‚   β”œβ”€β”€ Order.cs                   # Customer order
β”‚   β”œβ”€β”€ OrderItem.cs               # Order line item
β”‚   └── Review.cs                  # Product review
β”œβ”€β”€ Services/
β”‚   └── AuthService.cs             # Password hashing service
β”œβ”€β”€ Data/
β”‚   └── ApplicationDbContext.cs     # Entity Framework DbContext
β”œβ”€β”€ Views/
β”‚   β”œβ”€β”€ Account/                   # Login, Register, Profile
β”‚   β”œβ”€β”€ Admin/                     # Dashboard, Products, Orders
β”‚   β”œβ”€β”€ Cart/                      # Shopping cart
β”‚   β”œβ”€β”€ Checkout/                  # Checkout & Confirmation
β”‚   β”œβ”€β”€ Home/                      # Home page
β”‚   β”œβ”€β”€ Products/                  # Products listing & details
β”‚   └── Shared/                    # Layout & shared views
β”œβ”€β”€ wwwroot/
β”‚   β”œβ”€β”€ css/                       # All stylesheets
β”‚   β”œβ”€β”€ js/                        # JavaScript files
β”‚   └── images/                    # Product images
β”œβ”€β”€ Program.cs                     # Application startup
└── NutShop.csproj                # Project file

πŸ—„οΈ Database Schema

Users Table

Products Table

Categories Table

CartItems Table

Orders Table

OrderItems Table

Reviews Table

πŸš€ Getting Started

Prerequisites

Installation & Running

  1. Clone the repository
    git clone <repository-url>
    cd NutShop
    
  2. Restore packages
    dotnet restore
    
  3. Build the project
    dotnet build
    
  4. Run the application
    dotnet run
    
  5. Access the application
    • Open browser and go to: https://localhost:5001 (or http://localhost:5000)
    • Database will be auto-created on first run

πŸ‘€ Default Credentials

Admin Account

Use these credentials to access the admin dashboard at /Admin/Dashboard

πŸ›οΈ Test Data

The application comes pre-populated with:

πŸ’³ Checkout Process

  1. Add to Cart - Click β€œAdd to Cart” on any product
  2. Review Cart - View /Cart to see items and quantities
  3. Checkout - Click β€œProceed to Checkout”
  4. Shipping Details - Enter/verify phone and address
  5. Order Confirmation - View order details with tracking number
  6. Estimated Delivery - Shows 5 days from order date

πŸ“Š Admin Dashboard

Access admin panel at /Admin (requires admin login):

🎨 Features Highlight

Search & Filtering

Product Details

User Experience

Security

πŸ”„ Order Status Flow

Orders follow this status progression:

  1. Pending - Order received, awaiting processing
  2. Processing - Order is being prepared
  3. Shipped - Order on the way
  4. Delivered - Order delivered

Admin can update order status from the Orders management page.

πŸ’° Pricing

Sample product prices (in β‚Ή):

πŸ“± Responsive Design

The entire website is responsive and works on:

πŸ” Authentication & Authorization

🎯 Future Enhancements

Potential features to add:

πŸ“ Notes

πŸ†˜ Troubleshooting

Database not creating:

Images not loading:

Login not working:

Session expires:

πŸ“„ License

This project is created for educational purposes.


Version: 1.0
Last Updated: August 2024
Status: βœ… Production Ready