Skip to content

Node Express JS REST API Image Upload With MySQL Complete Example || Single/Multiple/Dynamic Upload

License

Notifications You must be signed in to change notification settings

Sameera-Perera/Express-Js-REST-API-Image-Uploade-Complete-Example

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn

Express-Js-REST-API-Image-Uploade-Complete-Example Node Express JS REST API Image Upload With MySQL Complete Example || Single/Multiple/Dynamic Upload

Product Name Screen Shot

This tutorial will cover all you need to know about Node express js REST API image uploaded with MySQL. This complete example will cover single image upload with data, multiple images upload with data and, dynamic numbers of images upload with data. below I mention source code, MySQL backup, and API documentation.

Built With

In this example, I used MySQL2 package for async transactions. if u don't need async transactions feel free to use MySQL package.

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g
  • MySQL

Installation

  1. Clone the repo
    git clone https://github.com/Sameera-Perera/Express-Js-REST-API-Image-Uploade-Complete-Example.git
  2. Install NPM packages
    npm install
  3. Make sure database details are correct .env
    PORT=3000
    DB_PORT=3306
    DB_HOST=localhost
    DB_USER=root
    DB_PASS=
    MYSQL_DB=my_db
    JWT_KEY=pwt123
    
    

Usage

Demo video - https://youtu.be/t6hiHIqSnQg

For more examples, please refer to the Documentation. upload this json file to postman.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

You Tube - @programming_night - Programming Night

Project Link: https://github.com/Sameera-Perera/Express-Js-REST-API-Image-Uploade-Complete-Example

About

Node Express JS REST API Image Upload With MySQL Complete Example || Single/Multiple/Dynamic Upload

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published