Mask-Development
This is the foundation of the Theme and Component driven development for the MASK Website.
The Tech Stack:
- Wordpress
- Fusion Page Builder
- Fusion Developer Guide
- FoundationPress Theme (Extract of build tasks in /assets)
- Fusion Base Theme
Setup
Downloads and Installation
- Download and install MAMP 4 or something with equivalent PHP and MySQL versions
- Clone https://github.com/MASK-Chicago/Mask-Development
- Download Wordpress and copy all folders/files EXCEPT wp-content into Mask-Development
- Check your MAMP preferences:
- PHP Version 7.0.15
- Web Server Document Root should be set to your Mask-Development folder
- Start MAMP.
Database Changes
- Open MAMP Web Start Page > Tools > phpMyAdmin
- Create a new database called wordpress
- Click on the wordpress database, then click on Import tab at the top. Import the masksite gzip file.
- After it completes, you should see a bunch of tables in the database prefixed with wp_vqbhrd142o_
- Click on table wp_vqbhrd142o_options. Click on Browse tab at the top.
- For table entries with option_name siteurl and home , edit their option_values to be http://localhost:8888 instead of http://masksite.flywheelsites.com
Wordpress Instance
- Go to http://localhost:8888/wp-admin/
- Select English as language of choice
- Enter the following for database information:
- Database name: wordpress
- Database username: root
- Database password: root
- Database host: localhost
- Table prefix: wp_vqbhrd142o_
- Finish up and login with the mask admin credentials.
- Install all Fusion plugins. Install "Button With Secondary" instead of "Button".
Workflow
Development
- Regularly export data from Flywheel so that dev instance has an up-to-date copy of pages/posts/components/etc.
- Updates to CSS and JS should be done in /fusion-base.
Build & Deploy Themes
- Package up the theme by executing 'npm run package' from /fusion-base.
- This will create a zip file (foundationpress_[date]-[time].zip) in /fusion-base/packaged
- Upload the zip file into WP Themes.
Build & Deploy Plugins
- TBD