Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.43 KB

File metadata and controls

69 lines (46 loc) · 1.43 KB

File-Explorer Logo

Description

Backend Server allows:

  • Handle client connections through websockets
  • Check if folders and files are valid
  • Monitoring folders and files in real time

Requirements

  • node v10.15.3 or higher
  • npm v6.4.1 or higher

It is important that you do not have any connection on ports 3011 and 8081

Technologies

Folder Monitoring Workflow

The flow carried out to monitor a directory is described below:

  1. A client requests to monitor a specific folder
  2. Socket-Gateway verifies and sends the request to Folder-Watcher use case to start monitoring
  3. Folder-Watcher detects when a file or directory is added, deleted or renamed
  4. Folder-Watcher dispatch an event with data to the Event-Bus
  5. Event-Bus notifies to Socket-Gateway change has occurred
  6. Socket-Gateway broadcasts the changes to all connected sockets

Installation

$ npm install

Running the server

$ npm run start

The app server will start here: http://localhost:3011

The websocket server will start on port 8081

Test

# unit tests
$ npm run test

# test coverage
$ npm run test:cov

License

File-Explorer Backend is MIT licensed.