Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This is the code base for the UK Government's e-petitions service (http://epetitions.direct.gov.uk)
Ruby HTML Cucumber CSS JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
features
lib
public
script
solr/conf
spec
spec_no_rails
vendor/plugins
.gitignore
.rspec
Capfile
Gemfile
Gemfile.lock
LICENCE.txt
README
Rakefile
config.ru
jenkins_build.sh

README

e-petitions

This repository is the code base for the UK Government's e-petitions service (http://epetitions.direct.gov.uk).  
We have open sourced the code for you to use under the terms of licence contained in this repository.

We hope you enjoy it!

A few things to know:

You will need ruby 1.8.7

You will need to set up the database.yml
You will need to run seeds.rb to seed the 'department' data required for moderation of petitions

For setting up a sysadmin user, run 'rake epets:add_sysadmin_user' - the password must contain a mix of upper and lower case letters, numbers and special characters.

To start a solr instance, run 'rake sunspot:solr:start'
To index the models, run 'rake sunspot:reindex'

To get the selenium tests running, make sure you're running firefox 7 as your firefox browser or alternatively, have firefox 7 in one of the following locations:
/Applications/Firefox7.app/Contents/MacOS/firefox-bin or
/Applications/Firefox 7.app/Contents/MacOS/firefox-bin 
Something went wrong with that request. Please try again.