Skip to content

Latest commit

 

History

History
177 lines (140 loc) · 4.87 KB

File metadata and controls

177 lines (140 loc) · 4.87 KB

🚀 Push DiscountMart to GitHub - Step by Step

📋 What's Ready for GitHub

I've created a complete deployment package with:

  • ✅ Professional README.md with full documentation
  • ✅ Dockerfile for container deployment
  • ✅ GitHub Actions workflow (.github/workflows/deploy.yml)
  • ✅ Environment configuration (.env.example)
  • ✅ Deployment guides (DEPLOYMENT.md, demo-setup.md)
  • ✅ MIT License
  • ✅ Complete project documentation

🔧 Steps to Push to GitHub

Step 1: Create GitHub Repository

  1. Go to github.com
  2. Click "New repository"
  3. Name: discountmart (or your preferred name)
  4. Description: "E-commerce application for local discount store in Rwanda"
  5. Make it Public (for live demo)
  6. Don't initialize with README (we already have one)
  7. Click "Create repository"

Step 2: Download/Export Your Code

Since you're on Replit, you need to get your code to your local machine:

Option A: Download ZIP

  1. In Replit, click on your project name
  2. Click "Download as ZIP"
  3. Extract the ZIP file on your computer

Option B: Use Replit Git If available in your Replit environment:

git init
git add .
git commit -m "Initial commit: DiscountMart e-commerce application"

Step 3: Push to GitHub (Local Terminal)

Open terminal/command prompt on your computer:

# Navigate to your project folder
cd path/to/discountmart

# Initialize git (if not already done)
git init

# Add all files
git add .

# Commit
git commit -m "Initial commit: Complete DiscountMart e-commerce application with live demo"

# Add your GitHub repository as remote
git remote add origin https://github.com/casmonster/LocalDiscountMart.git

# Push to GitHub
git branch -M main
git push -u origin main

🌐 Deploy Live Demo

Option 1: Vercel (Easiest)

  1. Visit vercel.com
  2. Sign in with GitHub
  3. Click "New Project"
  4. Import your discountmart repository
  5. Add environment variable:
    • Key: DATABASE_URL
    • Value: Your PostgreSQL connection string
  6. Click "Deploy"

Option 2: Railway

  1. Visit railway.app
  2. Connect with GitHub
  3. Select your discountmart repository
  4. Add environment variables:
    • DATABASE_URL: Your PostgreSQL connection string
  5. Deploy

Option 3: Render

  1. Visit render.com
  2. Connect GitHub account
  3. Create new Web Service
  4. Select discountmart repository
  5. Settings:
    • Build Command: npm run build
    • Start Command: npm run start
  6. Add environment variable: DATABASE_URL
  7. Deploy

🗃️ Database Setup for Live Demo

Free PostgreSQL Options:

Neon (Recommended)

  1. Visit neon.tech
  2. Sign up free
  3. Create project: "discountmart-demo"
  4. Copy connection string
  5. Use as DATABASE_URL in deployment

Supabase

  1. Visit supabase.com
  2. Create project: "discountmart-demo"
  3. Go to Settings → Database
  4. Copy connection string
  5. Use as DATABASE_URL

✅ After Deployment

1. Database Migration

Your hosting platform should automatically run:

npm run db:push

This creates all tables with sample data.

2. Test Your Live Demo

Visit your deployed URL and test:

  • Homepage loads
  • Browse products
  • Add to cart
  • Checkout process
  • Order tracking
  • Admin dashboard: /admin/orders/manage

3. Update Documentation

Replace placeholder URLs in README.md with your actual live demo URL.

📞 Your Live Demo Will Include

Customer Features:

  • Complete product catalog with 30+ items
  • Shopping cart with Rwanda Franc (RWF) pricing
  • Order placement and tracking
  • Newsletter subscription
  • Wishlist and recently viewed products

Admin Features:

  • Order management dashboard
  • Order status updates (pending → processing → shipped → delivered)
  • Newsletter subscriber management

Sample Data:

  • Products across 5 categories (Electronics, Clothing, Home & Garden, Sports, Books)
  • Sample orders with different statuses
  • Newsletter subscriptions for testing

🎯 Expected Result

Your live demo will be available at:

  • Vercel: https://discountmart-yourusername.vercel.app
  • Railway: https://discountmart-production.railway.app
  • Render: https://discountmart.onrender.com

🔧 If You Need Help

  1. Git Issues: Make sure you have Git installed locally
  2. Database Connection: Verify your DATABASE_URL is correct
  3. Build Errors: Check the deployment logs in your hosting platform
  4. Environment Variables: Ensure DATABASE_URL is set in your deployment platform

🎉 Success!

Once deployed, your DiscountMart application will be a fully functional e-commerce demo showcasing:

  • Modern React/TypeScript frontend
  • Express.js backend with PostgreSQL
  • Complete shopping experience
  • Admin management tools
  • Professional Rwanda-focused e-commerce solution

Share your live demo URL to showcase the complete application!