Skip to content

GoyalParas/Cricket_Weapon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏏 Cricket Weapon E-Commerce

Welcome to Cricket Weapon, a full-featured E-Commerce platform for cricket gear, built with the MERN stack (MongoDB, Express, React, Node.js). This project demonstrates a robust, scalable, and modern web application with real-world features for both users and admins.


🚀 Live Demo

🌐 cricketweaopn.vercel.app


📦 Tech Stack

  • Frontend: React, Redux, Material-UI, Axios, Stripe, Swiper, Styled-Components
  • Backend: Node.js, Express, MongoDB, Mongoose, Cloudinary, Stripe, JWT, Nodemailer
  • Deployment: Vercel (Frontend), Render/Heroku (Backend), MongoDB Atlas

✨ Features

  • User authentication (JWT, cookies)
  • Admin dashboard (products, orders, users, reviews management)
  • Product catalog with search, filter, and pagination
  • Shopping cart & order management
  • Secure payment integration (Stripe)
  • Product reviews & ratings
  • Profile management (avatar upload via Cloudinary)
  • Email notifications (order, password reset)
  • Responsive UI (Material-UI, custom CSS)
  • Error handling & loading states

🗂️ Folder Structure

Cricket_Weapon/
├── backend/
│   ├── app.js
│   ├── server.js
│   ├── controller/
│   ├── db/
│   ├── middleWare/
│   ├── model/
│   ├── route/
│   └── utils/
├── frotend/
│   ├── src/
│   │   ├── actions/
│   │   ├── component/
│   │   ├── constants/
│   │   ├── reducers/
│   │   ├── routes/
│   │   └── ...
│   └── public/
├── LICENSE
├── package.json
├── README.md
└── vercel.json

🛠️ Local Setup

  1. Clone the repo:
    git clone https://github.com/yourusername/cricket-weapon.git
    cd Cricket_Weapon
  2. Install dependencies:
    npm install
    cd frotend && npm install
    cd ../backend && npm install
  3. Configure environment variables:
    • Create .env files in backend/config/ for MongoDB, JWT, Cloudinary, Stripe, etc.
  4. Run locally:
    npm run dev

📋 API Endpoints (Backend)

  • /api/v1/products - Product listing, search, filter
  • /api/v1/user - User registration, login, profile
  • /api/v1/order - Order creation, history
  • /api/v1/payment - Stripe payment integration

👤 User Roles

  • User: Browse, add to cart, order, review, manage profile
  • Admin: Manage products, orders, users, reviews, dashboard analytics

🤝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


📫 Contact


Made with ❤️ for Cricket Lovers by Paras Goyal!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published