Legislator Database CSV: http://ftp.cga.ct.gov/pub/data/LegislatorDatabase.csv
- Running WordPress locally with MAMP in Windows and Mac
- Clone repository to
htdocs/wp-content/plugins/ - Go to http://localhost:8888/wp-admin/plugins.php and activate plugin
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)
- VM setup and docker installation
- If port 80 is being blocked by IIS, here's how to change it
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
wordpresscontainer
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.