Backend Server allows:
- Handle client connections through websockets
- Check if folders and files are valid
- Monitoring folders and files in real time
- 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
The flow carried out to monitor a directory is described below:
- A client requests to monitor a specific folder
- Socket-Gateway verifies and sends the request to Folder-Watcher use case to start monitoring
- Folder-Watcher detects when a file or directory is added, deleted or renamed
- Folder-Watcher dispatch an event with data to the Event-Bus
- Event-Bus notifies to Socket-Gateway change has occurred
- Socket-Gateway broadcasts the changes to all connected sockets
$ npm install
$ npm run start
The app server will start here: http://localhost:3011
The websocket server will start on port 8081
# unit tests
$ npm run test
# test coverage
$ npm run test:cov
File-Explorer Backend is MIT licensed.