Skip to content
Extraits de code Groupes Projets

Diaspora

The privacy aware, personally controlled, do-it-all, open source social network.

Getting started

In order to run Diaspora for development, there are a few external dependencies in getting your environment set up:

  • MongoDB - noSQL data layer.
  • OpenSSL - Used in the current encryption implementation.
  • ImageMagick - Image processing library used to resize uploaded photos.
  • Bundler - Gem management tool for Ruby projects.

After installing the above, run the following command from where mongo is installed to start mongo. sudo bin/mongod Diaspora will not run until mongo is running. Mongo will not run by default, and will need to be started every time you wish to use or run the test suite for Diaspora. It is highly recommended you alias the command to start the database in your .bashrc file.

In order to start the app server for the first time, bundler needs to grab Diaspora's gem depencencies. To allow this, run the following command from Diaspora's root directory.
bundle install

It is important to run a bundle install every so often, in the event of a new gem dependency. We will make sure to make an announcement in the event of a gem change.

Once mongo is running and bundler has finished, run: bundle exec thin start This will start the app server in development mode.

Diaspora's test suite uses rspec, a behavior driven testing framework. In order to run the tests, run the following command: bundle exec rspec spec

Getting Help

There are multiple outlets of ongoing discussion on the development of Diaspora.

More general info and updates about the project can be found on our blog, twitter. Also, be sure to join the official mailing list.