Giter Site home page Giter Site logo

neilvanbeinum / e-petitions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphagov/e-petitions

0.0 1.0 0.0 13.01 MB

This is the code base for the UK Government's e-petitions service (https://petition.parliament.uk)

Home Page: https://petition.parliament.uk

License: MIT License

Ruby 78.05% JavaScript 0.34% HTML 12.28% CSS 0.01% Gherkin 4.85% Shell 0.08% SCSS 4.40%

e-petitions's Introduction

Petitions

This is the code base for the UK Government and Parliament's petitions service.

Setup

We recommend using Docker Desktop to get setup quickly. If you'd prefer not to use Docker then you'll need Ruby (2.6+), Node (12+), PostgreSQL (10+) and Memcached (1.5+) installed.

Create the databases

docker-compose run --rm web rake db:setup

Create an admin user

docker-compose run --rm web rake epets:add_sysadmin_user

Load the country list

docker-compose run --rm web rake epets:countries:load

Fetch the regions list

docker-compose run --rm web rails runner 'FetchRegionsJob.perform_now'

Fetch the constituencies list

docker-compose run --rm web rails runner 'FetchConstituenciesJob.perform_now'

Fetch the department list

docker-compose run --rm web rails runner 'FetchDepartmentsJob.perform_now'

Enable signature counting

docker-compose run --rm web rails runner 'Site.enable_signature_counts!(interval: 10)'

Start the services

docker-compose up

Once the services have started you can access the front end, back end and any emails sent.

Tests

You can run the full test suite using following command:

docker-compose run --rm web rake

Individual specs can be run using the following command:

docker-compose run --rm web rspec spec/models/parliament_spec.rb

Similarly, individual cucumber features can be run using the following command:

docker-compose run --rm web cucumber features/suzie_views_a_petition.feature

e-petitions's People

Contributors

pixeltrix avatar h-lame avatar alanth avatar alexander-bobin avatar davidbasalla avatar otlaitil avatar mybits avatar oskarpearson avatar ansonk avatar dependabot[bot] avatar mikerogers0 avatar neilvanbeinum avatar abraaomota avatar pudiva avatar leandroalemao avatar tomski avatar samcrang avatar jamiecobbett avatar etagwerker avatar om-sharma avatar richardjpope avatar willp-bl avatar rooreynolds avatar dracos avatar mattbostock avatar kushalp avatar joelanman avatar thehenster avatar elenatanasoiu avatar zuzak avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.