IMAGE CRUD OPERATION WITH AWS S3 AND NODE.JS

This is the backend for the aws s3 image crud using nodejs, express and mongoDB as database.

Features and npm packages

  1. @aws-sdk/client-s3 - this is used to connect with my AWS s3 account so as to be able to do the image crud operation.

  2. s3-request-presigner: this is used to get the URL location of the uploaded image.

  3. dotenv - this is used to store all sensitive keys.

  4. mongoose - this is used to connect my server with mongoDB database.

  5. multer - this is used to pick the images that need to be uploaded and from this package, it is sent to AWS.

  6. uuid - this is used to assign a unique value to each image.

Prerequisites

Before running the project, make sure you have the following packages installed:

  1. Node.js
  2. npm or yarn package manager

Installation

  1. Clone the repository.
  2. Install dependencies.
  3. Configure environment variables