Skip to content

Secure API with authentication and authorization Database models for users, products, orders, and more CRUD operations for products and users in admin panel

Notifications You must be signed in to change notification settings

ZaryabXProgrammer/E-Commerce-Store-API---Backend-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce Backend with Node.js and MongoDB

This is the backend component of our e-commerce platform, developed using Node.js and MongoDB. The backend serves as the engine for our e-commerce store, handling product data, user authentication, order processing, and more. It includes a robust admin panel for managing products and users efficiently.

Table of Contents

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js: Install Node.js (and npm) on your machine.
  • MongoDB: Set up a MongoDB database to store application data.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/e-commerce-backend.git
    cd e-commerce-backend

Your backend API will be accessible at http://localhost:5000.

Features Secure API with authentication and authorization Database models for users, products, orders, and more CRUD operations for products and users in admin panel User authentication with JWT tokens Order creation and processing Integration with payment gateways Data validation and error handling Middleware for request authentication and authorization Data storage in MongoDB for scalability Folder Structure The backend directory structure is organized as follows:

src/: Contains the source code for the API routes and logic. models/: Defines the Mongoose database models. middleware/: Includes custom middleware for authentication and more. config/: Stores configuration settings. node_modules/: Contains project dependencies. server.js: Main server file. .env: Configuration file for environment variables. package.json: Project metadata and dependencies. API Endpoints Detailed information on API endpoints and how to use them can be found in the API.md file.

Contributing Contributions are welcome! Please read the CONTRIBUTING.md file for details on how to contribute to this project.

License This project is licensed under the MIT License - see the LICENSE file for details.

About

Secure API with authentication and authorization Database models for users, products, orders, and more CRUD operations for products and users in admin panel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published