Skip to content

wpcodevo/node_typeorm

 
 

Repository files navigation

Node.js and PostgreSQL: Upload and Resize Multiple Images

In this article, you'll learn how to upload and resize single and multiple images with Node.js, TypeScript, Multer, and Sharp. The Node.js API will run on an Express.js HTTP server and use PostgreSQL database.

Node.js and PostgreSQL: Upload and Resize Multiple Images

Topics Covered

  • Upload Single Image With Multer
    • Using Multer to Upload a Single Image
    • Route Handler Functions
  • Upload Single Image with Multer and Sharp
    • Using Multer to Upload a Single Image
    • Using Sharp to Resize a Single Image
  • Create the API Route Handlers
  • Upload Multiple Images with Multer and Sharp
    • Using Multer to Upload Multiple Images
    • Using Sharp to Resize Multiple Images
      • Processing a single file
      • Processing multiple files
    • Create the Route Functions
  • Frontend for Uploading Either Single or Multiple Images

Read the entire article here: https://codevoweb.com/node-postgresql-upload-resize-multiple-images

Articles in this series:

1. API with Node.js + PostgreSQL + TypeORM: Project Setup

API with Node.js + PostgreSQL + TypeORM: Project Setup

2. API with Node.js + PostgreSQL + TypeORM: JWT Authentication

API with Node.js + PostgreSQL + TypeORM: JWT Authentication

3. API with Node.js + PostgreSQL + TypeORM: Send Emails

API with Node.js + PostgreSQL + TypeORM: Send Emails

4. Node.js, Express, TypeORM, PostgreSQL: CRUD Rest API

Node.js, Express, TypeORM, PostgreSQL: CRUD Rest API

5. Node.js and PostgreSQL: Upload and Resize Multiple Images

Node.js and PostgreSQL: Upload and Resize Multiple Images

About

In this article, you'll learn how to build CRUD RESTful API with Node.js, ExpressJs, TypeORM, and PostgreSQL. We will define the database schema with TypeORM and run the migration command to push the TypeORM schema to the database. Next, we will create higher-level CRUD function to perform the CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors