Skip to content

adityakumar3006/Automated-Image-Processing-and-Management-System-from-CSV-Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Processing System

Introduction

This project implements a system to process image data from CSV files asynchronously. It provides APIs to upload CSV files, track processing status, and retrieve processed image data.

Features

  • Upload API: Accepts CSV files and generates a unique request ID.
  • Status API: Allows checking the processing status using the request ID.
  • Asynchronous Workers: Processes images by resizing and stores them in a database.
  • Webhook Integration: Sends notifications upon processing completion.

API Endpoints

Upload API

  • Endpoint: /upload
  • Method: POST
  • Request Payload: Form-data with csvFile field containing the CSV file.
  • Response: JSON with requestId upon successful upload.

Status API

  • Endpoint: /status/:requestId
  • Method: GET
  • Request Params: requestId (String)
  • Response: JSON with status of the processing request (PENDING, PROCESSING, COMPLETED).

Asynchronous Workers

Image Processing Worker

  • Functionality: Downloads images from URLs, resizes them, and updates database records with processed image URLs.

Installation and Setup

  1. Clone the repository: git clone [repository_url]
  2. Install dependencies: npm install
  3. Set up environment variables in .env file.
  4. Start the server: npm start

Technologies Used

  • Node.js
  • Express.js
  • Sequelize (SQL ORM)
  • Axios
  • Sharp (Image Processing)
  • MySQL (Database)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published