- Node JS
- Developer Tools, me use VSC
- Postman or Similar or Command Line
- Clone repo github
- Install library dependency with command
$ npm install- Install nodemon (optional) with command
$ npm install nodemon --save--dev- Running application with command
$ npm startcurl --location 'http://localhost:8001/api/v1/resize/image' \
--header 'Content-Type: application/json' \
--data '{
"pathFolderSource": "/home/vboxuser/Pictures/Source Image/",
"pathFolderDestination": "/home/vboxuser/Pictures/Target Image/",
"imageQuality": 10
}'curl --location 'http://localhost:8001/api/v1/list' \
--header 'Content-Type: application/json' \
--data '{
"pathFolder": "/media/sf_D_DRIVE/Video/",
"extFiles": ".mp4"
}'curl --location 'http://localhost:8001/api/v1/list' \
--header 'Content-Type: application/json' \
--data '{
"pathFolder": "/media/sf_D_DRIVE/Video/",
"extFiles": ""
}'curl --location 'http://localhost:8001/api/v1/list-by-folder' \
--header 'Content-Type: application/json' \
--data '{
"folderPath": "/media/sf_D_DRIVE/Video/"
}'curl --location 'http://localhost:8001/api/v1/rename' \
--header 'Content-Type: application/json' \
--data '{
"folderPath": "/home/vboxuser/Documents/",
"searchFiles": "rename-files-infolder-nodejs-main.zip",
"targetPath": "/home/vboxuser/Downloads/",
"renameFiles": "rename-files-infolder-nodejs-main.zip"
}'curl --location 'http://localhost:8001/api/v1/move/search' \
--header 'Content-Type: application/json' \
--data '{
"pathFolderSource": "/home/vboxuser/Documents/",
"searchFiles": "",
"pathFolderDest": "/home/vboxuser/Downloads/",
"size": "150 MB",
"withMove": true
}'