๐ E-commerce Platform
A full-stack e-commerce web application. It offers a seamless shopping experience with full inventory management, secure authentication, and support for PayPal and bank payments.
โจ Features
- ๐๏ธ Product browsing and search
- ๐ Shopping cart with quantity adjustments
- ๐ค User authentication (JWT, cookies)
- ๐ Role-Based Access Control (RBAC) for admin/user
- ๐ฆ Inventory management for admins
- ๐ณ PayPal and bank payment integration
- ๐งพ Order tracking and history
- โก Caching for improved performance
- ๐ฑ Responsive UI with Tailwind CSS + Setup for DaisyUI
- ๐ Redux Toolkit for state management
- ๐ง Backend built with Express & Node.js
- ๐๏ธ MongoDB for data persistence
- ๐ก๏ธ Security best practices: Helmet, CORS, rate limiting, etc.
- โ๏ธ Image upload with Multer
- ๐ Protected routes & authorization
๐ ๏ธ Tech Stack
Frontend
- React
- Tailwind CSS
- DaisyUI
- Redux Toolkit
- Cloudinary
Backend
- Node.js
- Express.js
- Redis
- Paypal payment integrated
- MongoDB + Mongoose
- JWT, Cookies
- Multer
- Cloudinary
๐ง Getting Started
1. Clone the Repository
git clone https://github.com/your-username/your-repo-name.git
cd Full-Stack-E-Commerce-MERN-APP
2. Set Up Environment Variables
Create a .env file in both /frontend and /backend with your configuration like:
Example for backend
PORT=5000
NODE_ENV=development
MONGO_URI="your_mongo_uri"
JWT_SECRET="your_jwt_secret"
JWT_EXPIRE=30d
CLIENT_URL="your-client-url"
PAYPAL_CLIENT_ID=your_paypal_id
REDIS_URL="your-redis-url"
Do this env for front end
NODE_ENV=development
VITE_SERVER_URL="your-server-url"
3. Install Dependencies
Using docker
docker-compose up
Using npm
# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm install
cd ..
npm install
npm run dev
๐ธ Screenshots
Admin Dashboard
Home page
Login page
Orders page
Reviews and suggestions
And more... Video for clarifying
Suggestions
- Add stripe its already configured for it
- Mobile app version (React Native)
- Real-time order status updates with WebSockets
๐จโ๐ป Author
- ๐จโ๐ป Ahmed Issawy
- ๐ Cairo, Egypt
- ๐ LinkedIn
๐ License U can use the project for any thing
Built With
- css
- dockerfile
- html
- javascript
- node.js
- react
- redis
- redux
- shadcn
- typescript
Log in or sign up for Devpost to join the conversation.