Giter Club home page Giter Club logo

shariz's Introduction

   ______            _   
  / __/ /  ___ _____(_)__
 _\ \/ _ \/ _ `/ __/ /_ /
/___/_//_/\_,_/_/ /_//__/
                         

What is Shariz?

Shariz, like dropbox, is a file sharing application. Shariz was implemented in Rust. For now it allows to share files between 2 computers.

How to configure and run the standalone?

shariz configuration

First of all download the latest executable compatible with your OS (Windows, MacOS, Linux) from here. Then create the .env file and the configuration.json file like was done in the previous screenshot (do not generate the sqlite.db file). Edit the configuration.json as described in the next paragraph. Run shariz from command line ./shariz (if you are using a Mac, allow execution of unidentified developers, otherwise you will not be able to run the executable). Do the same for the second PC.

shariz configuration

shariz configuration

On the first PC replace the target_ip with the others PC connected on the same network. Update also the shared_directory property that should point to the directory that will be shared. Do the same on other PC. Add/remove some file from the shared directory of the first PC and magically you will see that the same operation is done also in the shared directory of the second PC.

Of course you can run shariz at system startup, so that it can work in background (for example, for Linux some info could be found here).

How it works?

At startup Shariz loads the target server ip and port from the configuration file and creates a client that will connect to the target server. Meanwhile it makes a connection with the target application, requests for files and downloads them.

shariz flow

Screenshot

shariz flow

Development stack

shariz flow

For developers

sudo apt-get install libsqlite3-dev

cargo install diesel_cli --no-default-features --features sqlite

diesel migration run

Tests

I tested the application on a Mac and a Linux computer and it works fine (perhaps there are some bugs that I should fix).

If you fount some bugs please report them here.

shariz's People

Contributors

goto-eof avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.