Express-Js-REST-API-Image-Uploade-Complete-Example Node Express JS REST API Image Upload With MySQL Complete Example || Single/Multiple/Dynamic Upload
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.
In this example, I used MySQL2 package for async transactions. if u don't need async transactions feel free to use MySQL package.
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.
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
- Clone the repo
git clone https://github.com/Sameera-Perera/Express-Js-REST-API-Image-Uploade-Complete-Example.git
- Install NPM packages
npm install
- 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
Demo video - https://youtu.be/t6hiHIqSnQg
For more examples, please refer to the Documentation. upload this json file to postman.
Distributed under the MIT License. See LICENSE
for more information.
You Tube - @programming_night - Programming Night
Project Link: https://github.com/Sameera-Perera/Express-Js-REST-API-Image-Uploade-Complete-Example