Node.js RestApi File Upload (Download) Multiple Files/Images to MySQL/PostgreSQL database – Multer + Sequelize + Ajax

In the tutorial, I will introduce how to create a “Node.js RestApi File Upload” (and Node.js Rest Api File Download) Application with Ajax client to upload/download single or multiple files/images to MySQL/PostgreSQL database with Sequelize engine an Multer middleware.

– We use Express framework to create a Nodejs RestAPIs.
– We use Multer middleware for uploading images/files to Nodejs server.
– We use Sequelize ORM to store file data to database MySQL/PostgreSQL.

Related posts:


Here is a to-do-list:

– I draw a full diagram architecture of Nodejs RestAPI Upload Files
– I configure Sequelize ORM and Multer for Uploading files
– I build Nodejs Express RestApi to upload/download files
– I implement fontend with Jquery Ajax RestAPI client.

Continue reading “Node.js RestApi File Upload (Download) Multiple Files/Images to MySQL/PostgreSQL database – Multer + Sequelize + Ajax”

Token Based Authentication in Node.js using JWT (JSON Web Tokens) + MySQL Example

“How to implement Token Based Authentication in Node.js using JWT (JSON Web Tokens)?” is one of the most common question in the development world? So in the tutorial, I will introduce details step by step how to do it with 100% running coding example by Express RestAPIs, JWT(JSON Web Token), BCryptjs, Sequelize and MySQL/PostgreSQL database.

What will we do?


Continue reading “Token Based Authentication in Node.js using JWT (JSON Web Tokens) + MySQL Example”