Folder monitoring ap
This is a folder monitoring app, that download/upload the files to my website using http requests.
The goal is to be able to monitor the folder file modifications. Added file, removed file.
Add dir, removed dir.
With that information (chokidarjs will give this), store on sqlite3,
If the file has been modified, or has been deleted, after inserting on sqlite3, that has to trigger a rest request for upload/delete the files in the server using axios lib.
Here is a step-by-step logic to help you understand.
User installs the program. Generate sqlite database and download existing pictures from the server (downloads in parallel using axios lib with a configurable parameter of concurrent downloads.). So the program knows that it is being executed for the first time and pre-download all existing content and stores inside sqlite3 the info.
-- User adds a new photo - chokidar will fire an event. Store this info on the sqlite, then start uploading with axios. At the end of the upload, update sqlite database, with this info.
--User adds a folder - chokidar will fire this event. Process folder and adds all files and relative path to the sqlite. Start uploading files using axios.
The start of the upload, is not at the end of the processing, use events of sqlite3 or monitor using worker-threads to scan the database and start uploading in parallel. After downloading, it stores info inside sqlite3.
-- User deletes a file - based on name and path, send only one request to delete the relative path folder on the server.
-- User deletes a folder - based on the folder name/path, delete on sqlite3, then send only one request to delete the relative path folder on the server. When deleting folders, there is no need to process internal content.
Category: IT & Programming
Project size: Small
Is this a project or a position?: Project
I currently have: I have an idea
Required availability: As needed
API Integrations: Cloud Storage (Dropbox, Google Drive, etc.)