Loading repository data…
Loading repository data…
lyes-mersel / repository
A comprehensive e-commerce platform featuring a multi-vendor marketplace, chatbot support, order tracking, advanced analytics, and full customer, vendor, and admin management.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A comprehensive e-commerce platform featuring a multi-vendor marketplace, chatbot support, order tracking, advanced analytics, and full customer, vendor, and admin management.
Before you begin, ensure you have the following installed:
Clone the Repository
git clone https://github.com/lyes-mersel/megashop.git
cd megashop
Install Dependencies
npm install
Set Up Environment Variables
Create a .env file in the root directory:
# Local Development
NEXT_PUBLIC_BASE_URL="http://localhost:3000"
NEXT_PUBLIC_API_URL="http://localhost:3000/api"
# Production
PROD_API_URL="https://project-megashop.vercel.app"
PROD_BASE_URL="https://project-megashop.vercel.app/api"
# Database Connection
DATABASE_URL="postgresql://postgres.fallhpfxzcmhrvtticfn:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true&connection_limit=200&pool_timeout=10"
DATABASE_DIRECT_URL="postgresql://postgres.fallhpfxzcmhrvtticfn:[YOUR-PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:5432/postgres?connection_limit=200&pool_timeout=10"
# Cloudinary Configuration
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME="dzmbj5d0b"
NEXT_PUBLIC_CLOUDINARY_API_KEY="****"
CLOUDINARY_API_SECRET="****"
# Authentication
AUTH_SECRET="****"
# Chatbot OpenRouter API Key
OPENROUTER_API_KEY="****"
# Email Configuration
EMAIL_USER="noreply.megashop@gmail.com"
EMAIL_APP_PASSWORD="****"
# Default User Password
DEFAULT_PASSWORD="****"
Database Setup
# Generate Prisma client
npx prisma generate
# Run database migrations
npx prisma migrate dev
# Seed the database with initial data
npx prisma db seed
Run the Development Server
npm run dev
Open http://localhost:3000 in your browser.
The application uses PostgreSQL with the following main entities:
megashop/
├── app/ # Next.js App Router
│ ├── (portal)/ # Admin, vendor, and client portals
│ ├── (store)/ # Public store pages
│ ├── api/ # API routes
│ └── auth/ # Authentication pages
├── components/ # Reusable UI components
│ ├── auth/ # Authentication components
│ ├── common/ # Shared components
│ ├── layout/ # Layout components
│ ├── portal/ # Portal-specific components
│ ├── store/ # Store-specific components
│ └── ui/ # Base UI components
├── lib/ # Utility libraries
│ ├── auth/ # Authentication utilities
│ ├── helpers/ # Helper functions
│ ├── types/ # TypeScript type definitions
│ └── validations/ # Form validations
├── prisma/ # Database schema and migrations
├── redux/ # State management
└── styles/ # Global styles
npm run dev - Start development servernpm run build - Build for productionnpm run start - Start production servernpm run lint - Run ESLintnpx prisma studio - Open Prisma Studionpx prisma migrate dev - Run database migrationsnpx prisma db seed - Seed database with initial dataThe application uses NextAuth.js with the following authentication methods:
Build the application:
npm run build
Start the production server:
npm start
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MEGA SHOP © 2025 – Academic project developed by Master 1 Software Engineering students from the University of Béjaïa. This project serves as a comprehensive e-commerce solution that demonstrates modern web development practices, full-stack architecture, and real-world application development skills.
🏫 Institution: University of Béjaïa
📖 Program: Master 1 Software Engineering
👥 Team: 4 students
📅 Year: 2025
👨🏫 Supervisor: Mr Z.Farah
Note: The user experience (UI) and all project documentation are provided in French.
Explore the complete visual showcase in the 📁 Screenshots Gallery, featuring main store interface, admin portal, vendor portal, client portal, and mobile responsive design.
For detailed API documentation, please refer to the API Documentation README.
This project is licensed under the MIT License - see the LICENSE file for details.
MEGA SHOP - Your complete e-commerce solution! 🛍️✨