Initial commit

This commit is contained in:
2026-09-16 17:36:46 +05:30
commit c9f429d123
117 changed files with 14145 additions and 0 deletions

152
server/seed/seedData.js Normal file
View File

@@ -0,0 +1,152 @@
const seedUsers = [
{
name: 'Admin User',
email: 'admin@guitars.com',
password: 'Admin@123',
role: 'Admin',
phone: '+91 98765 43210',
avatar: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300'
},
{
name: 'Rahul Sharma',
email: 'john@example.com',
password: 'Customer@123',
role: 'Customer',
phone: '+91 98123 45678',
avatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300',
addresses: [
{
fullName: 'Rahul Sharma',
mobileNumber: '9812345678',
addressLine1: 'Flat 402, Green Glen Layout',
addressLine2: 'Outer Ring Road, Bellandur',
landmark: 'Near Sakra World Hospital',
city: 'Bengaluru',
district: 'Bengaluru Urban',
state: 'Karnataka',
postalCode: '560103',
country: 'India'
}
]
}
];
const seedCategories = [
{
name: 'Electric Guitars',
slug: 'electric-guitars',
description: 'Iconic solid-body and semi-hollow electric guitars for rock, blues, jazz, and metal.',
image: 'https://images.unsplash.com/photo-1564186763535-ebb21ef5277f?w=600',
displayOrder: 1,
isFeaturedHome: true
},
{
name: 'Acoustic Guitars',
slug: 'acoustic-guitars',
description: 'Rich sounding steel-string acoustic and acoustic-electric guitars.',
image: 'https://images.unsplash.com/photo-1525201548942-d8732f6617a0?w=600',
displayOrder: 2,
isFeaturedHome: true
},
{
name: 'Bass Guitars',
slug: 'bass-guitars',
description: '4-string, 5-string, and fretless bass guitars delivering deep low-end punch.',
image: 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=600',
displayOrder: 3,
isFeaturedHome: true
},
{
name: 'Amplifiers & Effects',
slug: 'amplifiers',
description: 'Tube, modeling amplifiers and stompboxes for studio and stage performance.',
image: 'https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=600',
displayOrder: 4,
isFeaturedHome: true
}
];
const seedBrands = [
{ name: 'Fender', slug: 'fender', logo: 'https://images.unsplash.com/photo-1564186763535-ebb21ef5277f?w=200', description: 'Legendary manufacturer of Stratocaster and Telecaster guitars.' },
{ name: 'Gibson', slug: 'gibson', logo: 'https://images.unsplash.com/photo-1550291652-6ea9114a47b1?w=200', description: 'Historic maker of Les Paul, SG, and ES-335 electric guitars.' },
{ name: 'Ibanez', slug: 'ibanez', logo: 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=200', description: 'High-performance fast neck guitars favored by modern virtuosos.' },
{ name: 'Martin', slug: 'martin', logo: 'https://images.unsplash.com/photo-1525201548942-d8732f6617a0?w=200', description: 'The gold standard of dreadnought acoustic guitars since 1833.' },
{ name: 'Taylor', slug: 'taylor', logo: 'https://images.unsplash.com/photo-1510915361894-db8b60106cb1?w=200', description: 'Innovative high-end acoustic guitars with articulate response.' },
{ name: 'Yamaha', slug: 'yamaha', logo: 'https://images.unsplash.com/photo-1510915361894-db8b60106cb1?w=200', description: 'Precision Japanese engineering and exceptional acoustic resonance.' },
{ name: 'PRS Guitars', slug: 'prs', logo: 'https://images.unsplash.com/photo-1516924962500-2b4b3b99ea02?w=200', description: 'Flawless craftsmanship, carved tops, and versatile humbucking tone.' },
{ name: 'Boss', slug: 'boss', logo: 'https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=200', description: 'World leader in guitar effects stompboxes and modeling amplifiers.' }
];
const seedBanners = [
{
title: 'Master Your Craft with Iconic Tone',
subtitle: 'Explore the 2026 Custom Shop Acoustic & Electric Guitar Collection in India',
desktopImage: 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=1600',
mobileImage: 'https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?w=800',
buttonText: 'Shop Guitars',
buttonLink: '/shop',
displayOrder: 1,
isActive: true
},
{
title: 'Unrivaled American & Japanese Craftsmanship',
subtitle: 'Limited Edition Les Paul & Stratocaster Releases Now In Stock',
desktopImage: 'https://images.unsplash.com/photo-1564186763535-ebb21ef5277f?w=1600',
mobileImage: 'https://images.unsplash.com/photo-1564186763535-ebb21ef5277f?w=800',
buttonText: 'Explore New Arrivals',
buttonLink: '/shop?isNewArrival=true',
displayOrder: 2,
isActive: true
}
];
const seedCoupons = [
{
code: 'WELCOME10',
discountType: 'percentage',
discountValue: 10,
minPurchaseAmount: 5000,
endDate: new Date('2028-12-31'),
isActive: true
},
{
code: 'GUITARHERO',
discountType: 'fixed',
discountValue: 5000,
minPurchaseAmount: 40000,
endDate: new Date('2028-12-31'),
isActive: true
}
];
const seedSocialMedia = [
{ platform: 'instagram', url: 'https://instagram.com', isEnabled: true },
{ platform: 'facebook', url: 'https://facebook.com', isEnabled: true },
{ platform: 'youtube', url: 'https://youtube.com', isEnabled: true },
{ platform: 'x', url: 'https://x.com', isEnabled: true }
];
const seedEmailTemplates = [
{
name: 'Order Confirmation',
subject: 'Order Confirmation #{{orderId}} - Antigravity Guitars India',
bodyHtml: `<h2>Thank you for your order, {{customerName}}!</h2><p>We are preparing your order <strong>#{{orderId}}</strong> for shipment. Total: <strong>₹{{orderTotal}}</strong>.</p>`,
placeholders: ['{{customerName}}', '{{orderId}}', '{{orderTotal}}']
},
{
name: 'Order Shipped',
subject: 'Your Guitar Order #{{orderId}} Has Shipped via Delhivery!',
bodyHtml: `<h2>Great news, {{customerName}}!</h2><p>Your order <strong>#{{orderId}}</strong> is on its way. Courier AWB Tracking Number: <strong>{{trackingNumber}}</strong>.</p>`,
placeholders: ['{{customerName}}', '{{orderId}}', '{{trackingNumber}}']
}
];
module.exports = {
seedUsers,
seedCategories,
seedBrands,
seedBanners,
seedCoupons,
seedSocialMedia,
seedEmailTemplates
};