Coder Social home page Coder Social logo

benjaminpreiss / demovox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spschweiz/demovox

0.0 0.0 0.0 3.16 MB

demovox is a tool to collect signatures for Swiss popular initiatives by offering the visitor a personalized signature sheet.

Home Page: https://demovox.ch

License: GNU General Public License v3.0

PHP 85.78% CSS 1.27% JavaScript 11.04% Shell 1.90%

demovox's Introduction

SP Schweiz

Demovox

Demovox (dev readme)

Build Status open bugs WordPress plugin downloads WordPress plugin version WordPress tested version

Description

demovox is a tool to collect signatures for Swiss popular initiatives by offering the visitor a personalized signature sheet.

This Plugin was developed by the Socialist Party of Switzerland, it was initially built for the popular initiative Prämien-Entlastungs-Initiative.

Donations

If this plugin is of help for you, please consider a donation.

Requirements

  • PHP >= 7.0 (feature "Hashid" requires >= 7.1.3)
  • MySQL >= 5.6.5
  • WordPress >= 4.9
  • SSL certificate for HTTPS (unsecure connection is only allowed for development)
  • Optional feature requires the PHP modules "GMP" or "BC Math"

Installation (production)

Simply install the the WordPress plugin demovox from within the Plugin manager of your WordPress installation. You can find the admin manual or the prebuilt Zip-File for manual installation on demovox.ch.

Dev

Please send a pull request for any improvements on the plugin.

Installation

  1. Pull demovox from within the Wordpress Plugin directory (/wp-content/plugins/)
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure the plugin in WordPress admin
  4. Place shortcodes [demovox_form] on a page
  5. Optionally use and [demovox_count] to get the number of collected signatures and [demovox_optin] for the opt-in form.

Required packages

Please install the following build dependencies:

Download required packages:

npm install
npm install grunt-cli sass -g
composer install --no-dev

Generate assets

Generate minified JS and CSS files and compile .mo translation files:

grunt buildAssets

Build zip

Create a ZIP which can be uploaded to a remote WordPress installation:

grunt buildZip

Required packages for tests

composer install
bin/install-wp-tests.sh  <db-name> <db-user> <db-pass> [db-host]

Running the tests

There are just a few PHPUnit tests available yet, feel free to contribute some and send a pull-request to increase the test coverage.

grunt test

Unencrypted access

As a developer you might want to work on a web server without SSL configured. Enable WP_DEBUG in wp-config.php. Then open the Advanced settings of the plugin in the WordPress backend and disable "Redirect clients to secure HTTPS".

Changelog

See README.txt

Authors

See also the list of contributors who participated in this project. Thanks to @dbu for code review.

License

This project is licensed under the GPLv3 License - see the LICENSE.txt file for details.

demovox's People

Contributors

dependabot[bot] avatar horlacher avatar tsueri 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.