SHOPPING_CART_APP is a modern and scalable e-commerce web application built with Vite, Tailwind CSS, Express.js, Stripe, Google & GitHub Auth, Firebase, PostgreSQL, and Prisma. It provides a seamless shopping experience for users with secure authentication, smooth UI, and integrated payment solutions.
SHOPPING_CART_APP/
āāā client/ # Frontend with Vite + React
ā āāā public/ # Static assets
ā āāā src/ # Components & pages
ā āāā .env # Frontend environment variables
ā āāā package.json # Frontend dependencies
ā āāā vite.config.js
āāā admin/ # Backend with Express & Prisma
ā āāā prisma/ # Database schema & migrations
ā āāā src/ # API routes & controllers
ā āāā .env # Backend environment variables
ā āāā package.json # Backend dependencies
ā āāā index.js
āāā README.md # Project documentation
āāā LICENSE # Project license
To run this project locally, follow these steps:
git clone https://github.com/sarahmaheen/SHOPPING_CART_APP.git
cd SHOPPING_CART_APP
# Frontend
cd client
npm install
# Backend
cd ../admin
npm install
Create a .env
file in both client/
and admin/
directories with the necessary variables.
.env
(Backend)# Server Port
PORT=8000
# Database Configuration (PostgreSQL)
DATABASE_URL=your_database_url
# CORS Settings
ORIGIN=http://localhost:5173 # Update this after deploying the frontend
# Stripe API Key (For Payment Gateway)
STRIPE_SECRET_KEY=your_stripe_secret_key
# Email Service (Brevo API)
BREVO_API_KEY=your_brevo_api_key
[email protected]
.env
(Frontend)# Backend API URL
VITE_PUBLIC_URL=your_backend_api_url
# Firebase Configuration
VITE_FIREBASE_API_KEY=your_firebase_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
VITE_FIREBASE_PROJECT_ID=your_firebase_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
VITE_FIREBASE_APP_ID=your_firebase_app_id
VITE_FIREBASE_MEASUREMENT_ID=your_firebase_measurement_id
# Firebase Authentication Provider
VITE_FIREBASE_AUTH_PROVIDER="google"
# Enable Firestore (If using Firestore database)
VITE_FIREBASE_FIRESTORE=true
# Enable Firebase Storage (If using file storage)
VITE_FIREBASE_STORAGE=true
# GitHub Authentication
VITE_GITHUB_CLIENT_ID=your_github_client_id
VITE_GITHUB_CLIENT_SECRET=your_github_client_secret
# Start Backend (Server)
cd server
npm run dev
# Start Frontend (Client)
cd ../client
npm run dev
š App will run at: http://localhost:3000
client/
npm run build
dist
server/
npm start
.env
Want to contribute? Follow these steps:
git clone https://github.com/sarahmaheen/SHOPPING_CART_APP.git
git checkout -b feature-xyz
git commit -m "Added XYZ feature"
git push origin feature-xyz
This project is licensed under the MIT License.
š¹ Beautifully created by Sarah Maheen š