Skip to content

A robust RESTful API for e-commerce operations built with Node.js and MongoDB. Features comprehensive endpoints for product management, secure user authentication, shopping cart operations, and payment integration (MPesa). Designed to support scalable e-commerce applications with detailed documentation for front-end integration.

Notifications You must be signed in to change notification settings

SymonMuchemi/ShopSmart

Repository files navigation

ShopSmart

Description

A robust RESTful API for e-commerce operations built with Node.js and MongoDB.

Shop-smart API Logo

Features

  • User Authentication
  • Product Management
  • image storage
  • Shopping Cart Operations
  • Purchase Management
  • Stripe Payment Integration

Technologies

  • Node.JS: JavaScript runtime.
  • Express: Web framework for Node.js.
  • Amazon S3: Cloud storage.
  • Multer: Middleware for handling multipart/form-data.
  • AWS EC2: for deployment.
  • MongoDB: NoSQL database.
  • Mongoose: Object Relational Mapper for MongoDB.
  • JWT: Secure user authentication.
  • Stripe: Payment processing platform.

Database Design

database Design

Installation

  1. Clone the repository from a terminal or command prompt.

    git clone https://www.github.com/symonmuchemi/ShopSmart.git
  2. Navigate to the project directory.

     cd ShopSmart
  3. Install the project dependencies.

    npm install
  4. Create a .env file in the root directory and add the following environment variables.

    PORT=3000
    
    MONGO_DB_URL=mongodb://localhost:3000/shopsmart
    
    JWT_SECRET=your_secret_key
    JWT_EXPIRATION=1d
    
    STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
    STRIPE_SECRET_KEY=your_stripe_secret_key
    
    S3_BUCKET_REGION='your_s3_bucket_region'
    S3_BUCKET_NAME='your_s3_bucket_name'
    S3_ACCESS_KEY='your_s3_access_key_id'
    S3_SECRET_ACCESS_KEY='your s3_secret_access_key'
  5. Start the application.

    npm run dev
  6. Access the application on http://localhost:3000.

Author

Symon Muchemi

About

A robust RESTful API for e-commerce operations built with Node.js and MongoDB. Features comprehensive endpoints for product management, secure user authentication, shopping cart operations, and payment integration (MPesa). Designed to support scalable e-commerce applications with detailed documentation for front-end integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published