Code Monkey home page Code Monkey logo

lobbywatch / lobbywatch Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 7.0 130.83 MB

Code for database forms and Drupal module for the Lobbywatch.ch project

Home Page: https://lobbywatch.ch

License: GNU General Public License v2.0

CSS 13.46% HTML 11.56% JavaScript 3.17% Shell 0.31% PHP 65.10% Smarty 0.42% Python 0.26% R 0.03% Hack 0.01% Less 1.05% Jupyter Notebook 4.64%
php mysql bash drupal python docker php-generator politics drupal-module rest-api restapi

lobbywatch's Introduction

Lobbywatch.ch

Lobbywatch.ch - the platform for transparent politics.

Lobbywatch.ch maintains a database with links of politicians and lobby groups.

This repository contains the

  • edit forms,
  • Drupal lobbywatch module for a textual representation,
  • DB structure, and
  • visualizations.

The data are not stored in this repository.

Requirements

  • PHP 7.2
  • PHP composer
  • MySQL 5.7.26
  • Drupal 7
  • bash 4.4
  • ImageMagick

More info, see https://lobbywatch.ch/de/seite/technik

Edit forms generation

The edit forms are built with the PHP Generator for MySQL Professional. Its a commercial tool (about 100$).

PHP Generator for MySQL Professional 18.3.0.2 (08.05.2018)

Setup

PHP

composer install

DB

mysql -u root

Remove NO_ZERO_IN_DATE,NO_ZERO_DATE, ONLY_FULL_GROUP_BY form sql_mode

show databases;

create database lobbywatch; create database lobbywatchtest;

./deploy.sh -l= -r -s prod_bak/bak/dbdump_struct_lobbywat_lobbywatch_20170714_143332.sql

GRANT SELECT ON . TO 'lw_reader'@'localhost' IDENTIFIED BY 'PASSWORD'; GRANT SELECT ON . TO 'lw_reader'@'127.0.0.1' IDENTIFIED BY 'PASSWORD';

FLUSH PRIVILEGES;

Edit forms

Build

./build.sh

Deploy

./deploy.sh -s -p

See parameters with

./deploy.sh -h

Drupal Theme

The Drupal 7 theme transparent_sky is in a separte git repository: https://github.com/Lobbywatch/transparent_sky

License

Source of Lobbywatch.ch is licensed under GPL, see LICENSE.

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.