Distributed-File-Server
System Premises
- See this repository
Prerequisites
NodeJS
MongoDB
Instalation
- Run MongoDB (port 27017 default)
- Run 'run.sh' to install dependencies
MANAGERS
Example:
- node -r babel-register -r babel-polyfill bin/www.js --server-port 3000 --client-port 3030 --ip 192.168.50.103
Where:
- --server-port: Port on which the servers will connect via Websockets (Socket.IO)
- --client-port: Port on which the servers will connect via TCP sockets (NET module)
- --ip: extern IP, to clients and servers connect.
SERVERS
Example:
node -r babel-register -r babel-polyfill bin/www.js --ip 192.168.50.103 --port 3001 --managers http://localhost:3000
--name server_name
Where:
- --ip: ip of computer
- --port: port to run
- --managers: active managers list (adress and port)
- --name: server name, to create a folder of files from that server
CLIENTS
Example
node -r babel-register -r babel-polyfill bin/www.js --port 3050 --managers http://192.168.50.103:3030
Where:
- --port: Port to run
- --managers: active managers list (adress and port)
Developed only for academic purposes of computer science course.
Technologies
- NodeJS
- MongoDB
- TCP sockets (to connect with multiples languages)
- SocketIO
- ES6 features
- AngularJS