Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Connect suppliers, distributors and consumers for the sale and purchase of local produce
Ruby CoffeeScript HTML CSS Other
Failed to load latest commit information.
app Merge branch 'master' into pin-refunds
config Revert "Display header for Xero invoices report"
db Merge branch '441-default-country' of…
doc Adding the missing bulk buy spec
lib Revert "Display header for Xero invoices report"
log new rails 3.1.4 app
public Regenerated icon font, smaller file size and updated graph icon
script Buildkite should now support Fuubar
spec Merge branch 'master' into pin-refunds
test new rails 3.1.4 app
vendor commenting changes in overridden adaptivemenu.js
.gitignore Merge branch 'master' into config
.mailmap right mapping of contributer's names in git
.rspec Don't show rspec profile by default
.ruby-gemset Rename misc items from openfoodweb to openfoodnetwork
.ruby-version Remove ruby- prefix from .ruby-version, turn off Travis email notific…
.travis.yml Make application.yml available to travis
Gemfile Merge branch master into properties
Gemfile.lock Update Spree - fixes bug where Payment#method_missing depends on #pro…
Guardfile Renaming everything to Shop
LICENCE.txt Add AGPL licence
Procfile switch to unicorn.
README.markdown Swap Jenkins build badge out for Buildkite
Rakefile Rename application from Openfoodweb to Openfoodnetwork Rename application from Openfoodweb to Openfoodnetwork
zeus.json Configure Travis, remove spork, add simplecov, add turbo sprokets.


Build status Code Climate

Open Food Network

The Open Food Network is an online marketplace for local food. It enables a network of independent online food stores that connect farmers and food hubs (including coops, online farmers' markets, independent food businesses etc); with individuals and local businesses. It gives farmers and food hubs an easier and fairer way to distribute their food.

Supported by the Open Food Foundation, we are proudly open source and not-for-profit - we're trying to seriously disrupt the concentration of power in global agri-food systems, and we need as many smart people working together on this as possible.

We're part of global movement - get involved!


  • Rails 3.2.x
  • Ruby >= 1.9.3
  • PostgreSQL database
  • PhantomJS (for testing)
  • See Gemfile for a list of gems required

Get it

The source code is managed with Git (a version control system) and hosted at GitHub.

You can view the code at:

You can download the source with the command:

git clone

Get it running

For those new to Rails, the following tutorial will help get you up to speed with configuring a Rails environment: .

First, check your dependencies: Ensure that you have Ruby 1.9.x installed:

ruby --version

Install the project's gem dependencies:

bundle install

Configure the site:

cp config/application.yml.example config/application.yml
edit config/application.yml

Create the development and test databases, using the settings specified in config/database.yml, and populate them with a schema and seed data:

rake db:setup

Load some default data for your environment:

rake openfoodnetwork:dev:load_sample_data

At long last, your dreams of spinning up a development server can be realised:

rails server


Tests, both unit and integration, are based on RSpec. To run the test suite, first prepare the test database:

bundle exec rake db:test:prepare

Then the tests can be run with:

bundle exec rspec spec

The site is configured to use Zeus to reduce the pre-test startup time while Rails loads. See the Zeus github page for usage instructions.



Copyright (c) 2012 - 2015 Open Food Foundation, released under the AGPL licence.

Something went wrong with that request. Please try again.