https://github.com/marcosspessatto/distributed-file-server
https://github.com/marcosspessatto/distributed-file-server
distributed-systems es6 mongodb nodejs socket-io tcp-socket
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcosspessatto/distributed-file-server
- Owner: MarcosSpessatto
- Created: 2017-04-16T21:24:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T20:56:18.000Z (about 9 years ago)
- Last Synced: 2024-12-29T18:16:34.430Z (over 1 year ago)
- Topics: distributed-systems, es6, mongodb, nodejs, socket-io, tcp-socket
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Distributed-File-Server
## System Premises
- See this [repository](https://github.com/selatotal/SistemasDistribuidos/tree/master/Trabalhos/201701)
### 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](https://socket.io/))
- --client-port: Port on which the servers will connect via TCP sockets ([NET module](https://nodejs.org/api/net.html))
- --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
### Authors
[@MarcosSpessatto](https://github.com/MarcosSpessatto)
[@pedrokehl](https://github.com/pedrokehl)