Skip to content

sohaibssb/E-commerce-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce-App

Backend service that manages users, products, and orders. It is built with NodeJS and Express, uses MongoDB for data storage, and provides a RESTful API for client interactions. Also JWT for authentication.

Features

  • User registration and authentication
  • Product management (CRUD operations)
  • Order management
  • Secure password handling with AES encryption
  • Authentication using JSON Web Tokens (JWT)

Tools and Libraries

  • NodeJS: JavaScript runtime for building server-side applications
  • Express: Web framework for NodeJS
  • MongoDB: NoSQL database for storing application data
  • Mongoose: ODM for MongoDB
  • CryptoJS: Library for encryption and decryption
  • Nodemon: Utility to automatically restart the server on code changes
  • Dotenv: Module to load environment variables from a .env file
  • JWT (jsonwebtoken)

Setup and Installation

Prerequisites

  • NodeJS (v14 or higher)
  • MongoDB (v4 or higher)
  • npm (v6 or higher)

Installation Steps

  1. Clone the repository

    git clone https://github.com/sohaibssb/E-commerce-App.git
    cd E-commerce-App
  2. Install dependencies

    npm install
  3. Create a .env file

    touch .env

    Add the following environment variables to the .env file:

    MONGO_URL=mongodb://localhost:27017/ecommerce
    PASS_SEC=your_secret_key
    
  4. Run the application

    npm start

    The server will start on http://localhost:5000

About

With using NodeJS, REST API and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published