Skip to content

ashishsigdel/E-commerce-website-seller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Backend API

This repository contains the backend API for an e-commerce website built using Node.js, Express, and MongoDB. It provides various endpoints to manage products, users, and orders for the associated front-end application.

API Check

to check this code API download Insomnia.json file from this repo and simply import inside API test app like Insomnia or Postman.

or directly check by this link: (https://e-commerce-app-api-alpha.vercel.app/)

Table of content

  • Configuration and Setup

  • Key Features

  • Technologies used

  • Author

  • License

Configuration and Setup

In order to run this project locally, simply fork and clone the repository or download as zip and unzip on your machine.

  • Open the project in your preferred code editor.
  • Go to terminal -> New terminal (If you are using VS code)
    npm install  // to install dependencies
    npm run dev  // to start

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PORT

MONGO_URL

JWT_SECRET

MAIL_ID

MP

CLOUD_NAME

API_KEY

API_SECRET

Key features

  • Project Setup

  • User Authentication and Authorization

  • Product Management

  • User Interaction and Rating

  • Order and Payment Management

  • CRUD operations (post create, read, update and delete

Technologies used

  • Node.js - A runtime environment to help build fast server applications using JS
  • Express.js - The server for handling and routing HTTP requests
  • bcryptjs - For data encryption
  • Cloudinary - For file upload and image storage
  • cookie-parser - Middleware for handling cookies
  • dotenv - Zero Dependency module that loads environment variables
  • jsonwebtoken - For authentication
  • Mongoose - For modeling and mapping MongoDB data to JavaScript
  • morgan - HTTP request logger middleware
  • multer - Middleware for handling multipart/form-data (file uploads)
  • Nodemailer - Module for sending emails
  • nodemon - Utility for monitoring changes in the development environment
  • sharp - High-performance image processing library
  • slugify - Library to convert a string into a slug
  • uniqid - Generate unique IDs

Author

Ashish Sigdel

License

Copyright (c) 2024 - Ashish Sigdel