This is the backend for the aws s3 image crud using nodejs, express and mongoDB as database.
-
@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.
-
s3-request-presigner: this is used to get the URL location of the uploaded image.
-
dotenv - this is used to store all sensitive keys.
-
mongoose - this is used to connect my server with mongoDB database.
-
multer - this is used to pick the images that need to be uploaded and from this package, it is sent to AWS.
-
uuid - this is used to assign a unique value to each image.
Before running the project, make sure you have the following packages installed:
- Node.js
- npm or yarn package manager
- Clone the repository.
- Install dependencies.
- Configure environment variables