Skip to main content

Peer to peer app synchronization protocol

Project description

What is flock

Flock is a distributed app synchronization system. It lets you build web applications that don’t need any web servers. Each user’s computer works as part of the application. The goal of flock is to make more web sites distributed, which means less central control.

Is flock ready to use?

Right now, flock is ready for developers, and savy command line users. We plan to make installers for OS X, Windows to make the process easier in the near future. In addition, we are still pre-1.0, so there may be compatibility breaking changes coming still.

How do I install it?

For app developers and users, run:

` pip install flocksync `

If you want to develop the flock protocol/engine itself, see the ‘developing flock’ section.

How do I run it?

First, start by launching the flock service:

` flock -d <storage_dir> `

<storage_dir> is a path to where flock should store files that are part of the various apps your use or create.

Once that is done, you need to join one or more ‘apps’. If you want to develp a new app, see the ‘developing apps’ section. To join an app, you need to know the app’s ID number. Right now, the author is running a ‘test-app’ with the ID of 5a6961ca9a2d774b2a53e7f4b93d285cba586ac3. We plan to make a web interface for finding and joining new apps built in to flock, but for now, you need to use curl.

To join an app run:

` curl -v -X POST --header "Content-Type: application/json" localhost:8000/<ID>/join_app -d '{}' `

Where <ID> is replaced by the ID of the app, for example:

` curl -v -X POST --header "Content-Type: application/json" localhost:8000/5a6961ca9a2d774b2a53e7f4b93d285cba586ac3/join_app -d '{}' `

Yes, that’s really ugly, don’t worry, we’ll fix it soon. Once you’ve joined an app, you go to it by opening a browser and going to:

` http://localhost:8000/<ID>/index.html `

Where <ID> is replaced by the ID of the app again. Right now, we don’t automatically redirect to index.html, you have to have that.

developing apps

TODO

developing flock

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flocksync-0.2.1.tar.gz (22.4 kB view details)

Uploaded Source

File details

Details for the file flocksync-0.2.1.tar.gz.

File metadata

  • Download URL: flocksync-0.2.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flocksync-0.2.1.tar.gz
Algorithm Hash digest
SHA256 68e650626ef32573a88cebe1c3a5828337cb52fd7fd2d245306a692cff325b6b
MD5 02a961f38bca07d4f322ea9526d8e4a6
BLAKE2b-256 cbeffc97e03de1bad9f27fe0fed82cb4b35355eaf72d1917e482ac1ca4e1fb5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page