WP Manifestindependent plugin directory
manifest / content / wp-amplify-legislator-database

Amplify Legislators Database

WordPress Plugin for Amplify's Legislator Database

by José Padilla · github.com/codeforct/wp-amplify-legislator-database · website

3stars
4forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/codeforct/wp-amplify-legislator-database/archive/refs/heads/master.zip

Legislator Database CSV: http://ftp.cga.ct.gov/pub/data/LegislatorDatabase.csv

How to install

Development

Development with Docker

An alternative to M/W/XAMP is to use docker with or without docker-compose. This project contains a docker-compose.yml file to help you begin developing quickly. If you need to install docker and docker-compose, you can use the following links:

Mac, Linux, and Windows 10 Pro

Windows 10 Home (requires a Linux virtual machine)

The docker-compose file included uses docker images for WordPress 5.3 and mysql 5.7. To start the project, run docker-compose up. This will:

  • fetch the required docker images if you don't currently have them
  • create persistent database and server volumes
  • mount the current working directory to the appropriate plugins directory within the wordpress container

After startup, visit localhost to view the wordpress installation. The admin area will be available at localhost/wp-admin after the initial configuration. To view the database directly using SequelPro (for example) configure a connection using:

  • Host: 127.0.0.1
  • Username: wordpress
  • Password: wordpress
  • Database: wordpress
  • Port: 3306

To stop the containers, you can use the terminal command docker stop $(docker ps -q) or (on Mac) ctrl C.

To remove the containers without destroying the persistent volumes use docker-compose down. To also destroy the volumes, use docker-compose down -v.