Skip to content

Viditjoshi/Full_Stack_Ecommerce_Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛍️ Full Stack E-Commerce Website - Backend A scalable and secure E-commerce platform backend built using modern web technologies. This backend handles API routes, user authentication, product management, and order processing, ensuring a smooth and efficient e-commerce experience.

⚙️ Backend Tech Stack Node.js: Backend runtime environment Express.js: Web framework for building RESTful APIs MongoDB: NoSQL database for storing product, user, and order data Mongoose: ODM for MongoDB, used for schema validation and data modeling JWT (JSON Web Tokens): Secure user authentication and authorization Bcrypt.js: Password hashing for enhanced security Nodemailer: Email service integration for sending account-related emails (e.g., password resets) Cloudinary: Image storage and management for product images Cors: Cross-Origin Resource Sharing to handle requests from the frontend Dotenv: Secure environment variable management Express-Validator: Middleware for data validation Stripe/Razorpay: (Planned) Payment gateway integration for secure transactions

🔑 Backend Features RESTful API with full CRUD operations Secure Authentication with JWT and role-based access control Product Management (Add, Edit, Delete) User Management Order Processing Image Uploads with Cloudinary integration Error Handling and centralized logging Environment Configurations using dotenv Validation using express-validator for handling user inputs

Project Structure arduino Copy code backend/
├── controllers/
├── models/
├── routes/
├── middlewares/
├── config/
├── utils/
└── server.js

📂 API Endpoints Method Endpoint Description Collection Json Access PostMan

📦 Postman API Collection

👉 View Postman Collection

📌 Planned Enhancements Payment Gateway Integration (Stripe/Razorpay) Admin Dashboard Analytics Email Notifications Wishlist & Reviews Feature Unit Testing with Jest

🚀 How to Run the Backend Locally Clone the repository: git clone https://github.com/your-username/ecommerce-project.git cd ecommerce-project/backend

Install dependencies: npm install Create a .env file and add your environment variables:

env

PORT=5000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
CLOUDINARY_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret

Start the server:

npm run dev

About

This is Live link to Test Api form my Backend If you are Postman User then Chack Readme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published