• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Ruby
  • License
    BSD 3-Clause "New...
  • Created over 13 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A roll your own Dropbox-like clone written in Ruby.

RubyDrop

RubyDrop is my first ever Ruby project that aims to be an open-source, roll-your-own, Dropbox clone using Git as the backend. There's still a lot of details to work out, and the code may be a little messy, so you'll have to bear with me (it's a process).

Prerequisites

  • RubyGems
  • Grit
  • Ruby 1.9+ (need require_relative function)

How to Run

You can start RubyDrop by simply running:

./RubyDrop &

By default, the RubyDrop folder that it monitors is created (if it doesn't exist already) at ~/RubyDrop. To change this path, simply edit config.yml. It also initializes a Git repository in the folder automatically, if it doesn't already exist.

Handling Remote File Syncing and Tracking

After much deliberation, I have decided to go with Git for handling file tracking and remote file syncing. We'll see how well this pans out...

Currently, you must manually create the git repo on your remote server. This will be automated as soon as I can write RubyDrop-Server. If you are new to Git, this is how you do it (assuming you are SSH'd into your remote server):

First, you will probably want to make a new user for RubyDrop:

adduser rubydrop

Then, make it possible for RubyDrop to make a passwordless SSH connection to the server:

"Shortest passwordless ssh tutorial, ever"

Finally, you will need to make the repository folder on the remote server (login to the remote server the newly created 'rubydrop' user):

cd ~/
git init RubyDrop.git --bare

That's it! Yes, I'm aware that was a really rough guide.

Controlling RubyDrop

RubyDrop has a TCP interface that you can use to communicate with it while its running. The simplest and easiest way to do so is by using telnet.

Here's an example that halts the RubyDrop daemon (by sending 'stop'):

telnet localhost 11311
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Thu Nov 25 03:23:48 2010
Welcome to RubyDrop
stop
RubyDrop daemon halting!
Connection closed by foreign host.

TCP Interface Commands

* config_get [name] * Retrieves the value from the RubyDrop config specified by [name] * stop * Halts the daemon * quit * Ends the TCP session, but leaves the daemon and TCP server running

More Repositories

1

CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
HTML
3,551
star
2

psd.js

A Photoshop PSD file parser for NodeJS and browsers
CoffeeScript
2,720
star
3

CoffeeDrop

CoffeeDrop is an open-source, roll your own, Dropbox-like clone written in CoffeeScript. Currently not working and under heavy development.
CoffeeScript
509
star
4

ajax-chosen

A complement to the jQuery library Chosen that adds ajax autocomplete
CoffeeScript
409
star
5

flickr-store

Store arbitrary data on Flickr
Ruby
275
star
6

git-lfs-s3

A Git LFS server that uses S3 as the storage backend.
Ruby
216
star
7

CamanJS-Plugins

Plugins for CamanJS, a Javascript image manipulation library
CoffeeScript
195
star
8

nanocrawler

Web-based front end for viewing information about your Nano node and exploring the Nano network
JavaScript
83
star
9

CamanJS-Site

CamanJS Homepage
JavaScript
66
star
10

node-activerecord

A ORM written in Coffeescript that supports multiple database systems (SQL/NoSQL) and ID generation middleware.
CoffeeScript
58
star
11

JSONP-Fu

A Javascript library that provides access to multiple JSONP API's through a unified, extensible, and easy to use interface.
JavaScript
27
star
12

node-iracing

iRacing SDK bindings for NodeJS
C++
22
star
13

png-encode

Encode/decode arbitrary files using the PNG file format
Ruby
14
star
14

coffeescript-module

A base class for your Coffeescript projects
CoffeeScript
14
star
15

bindata.js

A structured and understandable way to read/write binary data in Javascript. Inspired by Ruby BinData.
CoffeeScript
10
star
16

Osimo-BBCode-Editor

An easy to use jQuery plugin BBCode editor
JavaScript
9
star
17

CamanJ

Java port of the CamanJS image manipulation library
Java
8
star
18

CamanDrop

Easy and automatic image filters using CamanJS, watch folders, and NodeJS.
JavaScript
7
star
19

NodeMonitor

A distributed server monitoring system written in Javascript for Node.JS that uses WebSockets to show server info in near real-time from the browser.
JavaScript
7
star
20

iracing-websocket-server

A WebSocket based server that streams data from iRacing to the browser.
JavaScript
7
star
21

Asyrch

Asynchronous web searching using web workers and ajax
JavaScript
6
star
22

qr-logo

A simple library for customizing a QR code with a logo.
JavaScript
5
star
23

campfire-notifier

A self-hosted Campfire push notification service
Ruby
4
star
24

wiki-philosophy

How many clicks does it take to get from any word to Philosophy on Wikipedia?
JavaScript
4
star
25

nano-ipc-js

Javascript library for interacting with the Nano node IPC
JavaScript
4
star
26

nano-seeds.lol

A take on keys.lol, but for Nano based currencies
JavaScript
4
star
27

MeltingIce-File-System

An online storage service with support for multiple users, Flash file uploading, and advanced user management. Project is no longer under active development.
PHP
4
star
28

Notetakr

An online note-taking application - no longer hosted, code is for experimentation and learning. This was a very old project of mine and is no longer under development.
JavaScript
3
star
29

TransmissionRemote-Pebble

Check on the status of your Transmission torrents from your Pebble smartwatch
JavaScript
3
star
30

meltingice.github.com

Github homepage
JavaScript
3
star
31

Osimo-BBCode-Parser

The BBCode parser made for Osimo Forum System, but can be used for any project.
PHP
3
star
32

node-memcached

A Node.JS memcached interface
3
star
33

Osimo-Forum-System-v2

Osimo is a forum system written from the ground up to be easy to theme and use.
PHP
3
star
34

Caman-C

C port of the Javascript image manipulation library CamanJS
C
3
star
35

nano-grpc

A gRPC server for the Nano cryptocurrency node
JavaScript
2
star
36

jSearch

A jQuery plugin to search an HTML element for a query and highlight the matches. Also, has a iPhone bookmarklet to search the current page and auto search engine detection.
JavaScript
2
star
37

nanocrawler-phoenix

Elixir/Phoenix based version of Nanocrawler, a Nano network explorer
JavaScript
1
star
38

nano-node-statsd

StatsD data collection for Nano currency nodes
JavaScript
1
star
39

cs-terrain-generator

A fractal terrain generator made especially for Cities: Skylines.
JavaScript
1
star
40

nano-ipc-rest

A simple IPC + REST RPC server for the Nano cryptocurrency node.
JavaScript
1
star
41

poopelo

Checks to see if our neighborhood pool is closed.
JavaScript
1
star
42

Osimo-Forum-System-v1

The old version of the Osimo Forum System that has been migrated to GitHub for archival purposes mostly. Please visit the Osimo Version 2 page to see the latest development!
PHP
1
star
43

Ghetto-FBChat

Back before Facebook supported its chat feature on mobile devices, I began to create a simple website that would allow this functionality without using the Facebook API. Chances are this code doesn't even work anymore, so it's here mostly for viewing pleasure.
JavaScript
1
star
44

deviant

An elasticsearch backed exception logging service
Ruby
1
star