Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
12131c0
Added: Environment variable example files for easier setup
itxSaaad Feb 22, 2026
4b60e03
Added: Centralized constants management system
itxSaaad Feb 22, 2026
6ab0174
Added: Server utilities for error handling and business logic
itxSaaad Feb 22, 2026
a4a3877
Added: Input validation and rate limiting middleware
itxSaaad Feb 22, 2026
6c1250d
Added: Frontend utilities and route protection components
itxSaaad Feb 22, 2026
8f672e1
Added: Comprehensive documentation suite
itxSaaad Feb 22, 2026
6eb2528
Added: New user-facing screens for enhanced UX
itxSaaad Feb 22, 2026
d3e5b6c
Added: Analytics feature for admin dashboard
itxSaaad Feb 22, 2026
1945f3a
Added: Inventory alert system for low stock monitoring
itxSaaad Feb 22, 2026
fb5baa0
Refactor: Replace Razorpay with Stripe payment system and add COD
itxSaaad Feb 22, 2026
f21003c
Refactor: Update database schemas with constants and performance indexes
itxSaaad Feb 22, 2026
75cf7a9
Refactor: Modernize server controllers with standardized error handling
itxSaaad Feb 22, 2026
263effa
Refactor: Add validation and rate limiting to all API routes
itxSaaad Feb 22, 2026
7e6346e
Refactor: Update seed data with realistic prices and enhanced pizzas
itxSaaad Feb 22, 2026
c390c00
Refactor: Update database configuration for better exports
itxSaaad Feb 22, 2026
e4963a2
Refactor: Update Redux thunks with standardized error handling
itxSaaad Feb 22, 2026
a54f0ad
Refactor: Update UI components with constants and enhanced error display
itxSaaad Feb 22, 2026
8d2c35a
Refactor: Enhance user screens with improved UX and constants
itxSaaad Feb 22, 2026
ba1709e
Update README.md with detailed user and admin features, enhance tech …
itxSaaad Feb 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Server Configuration
NODE_ENV=development
PORT=5000

# Frontend URL (used in emails, CORS, etc.)
# For production: https://your-frontend.vercel.app
FRONTEND_URL=http://localhost:5173

# CORS Configuration (comma-separated list of allowed origins)
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173

# MongoDB Connection (Docker Container)
# Option 1: If using existing mongo-dev container (no auth)
MONGO_URI=mongodb://localhost:27017/pizza-delivery-app

# Option 2: If using docker-compose.yml with authentication
# MONGO_URI=mongodb://admin:password123@localhost:27017/pizza-delivery-app?authSource=admin

# Authentication
# Generate a strong secret for production: openssl rand -base64 32
JWT_SECRET=your_super_secret_jwt_key_change_this_in_production
SALT=10

# Email Configuration (Nodemailer)
# For Gmail: Enable 2FA and create an App Password
SENDER_EMAIL=your_email@example.com
SENDER_PASSWORD=your_email_app_password
SUPERADMIN_EMAIL=admin@example.com

# Payment Gateway (Razorpay)
# Sign up at https://razorpay.com/ to get API keys
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret
RAZORPAY_WEBHOOK_SECRET=your_razorpay_webhook_secret
Loading