Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lobbywatch/lobbywatch
Code for database forms and Drupal module for the Lobbywatch.ch project
https://github.com/lobbywatch/lobbywatch
bash docker drupal drupal-module mysql php php-generator politics python rest-api restapi
Last synced: 28 days ago
JSON representation
Code for database forms and Drupal module for the Lobbywatch.ch project
- Host: GitHub
- URL: https://github.com/lobbywatch/lobbywatch
- Owner: lobbywatch
- License: gpl-2.0
- Created: 2014-05-24T10:36:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T14:22:36.000Z (about 2 months ago)
- Last Synced: 2024-11-08T15:23:26.054Z (about 2 months ago)
- Topics: bash, docker, drupal, drupal-module, mysql, php, php-generator, politics, python, rest-api, restapi
- Language: PHP
- Homepage: https://lobbywatch.ch
- Size: 112 MB
- Stars: 35
- Watchers: 5
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lobbywatch.ch
=============[Lobbywatch.ch](https://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
* ImageMagickMore info, see https://lobbywatch.ch/de/seite/technik
### Edit forms generation
The edit forms are built with the [PHP Generator for MySQL Professional](https://www.sqlmaestro.com/de/products/mysql/phpgenerator/). 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.