An open API service indexing awesome lists of open source software.

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

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)