innovativedmm / wp.thepoliticalrev.org

Staging site:

Home Page:https://wpdev.thepoliticalrev.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to the Github repository for The Political Revolution's Wordpress setup. It is built upon the Sage 8.5 starter theme and sports a modern development workflow.

This file describes the steps to install this Wordpress repo and setup all the components on the same (Debian or Ubuntu) machine. The steps should be largely similar for using MAMP or homebrew.

Contributing

Contributions are welcome from everyone. However, please read the contributing guidelines before jumping into the code to give your work the highest chance of being merged.

Requirements

Make sure all dependencies have been installed before moving on:

  • Node.js >= 4.5
    • update to the latest version of npm: npm install -g npm@latest.
  • Docker Engine for your platform

Installation

Installation is straight-foward.

  1. Clone the repository.
  2. Install gulp and Bower globally with npm install -g gulp bower
  3. In the root of the project, run npm run-script build && npm start.
  4. Navigate to http://localhost:8080/ and follow the instructions to create your local dev environment.

npm start runs gulp watch and starts the docker development server. Stopping gulp with ctrl + C and running npm stop will spin down your dev processes. To attach to the terminal of the local dev server, you may run docker exec -it wpthepoliticalrevorg_my-wp_1 /bin/bash.

A pre-populated database is not currently being provided. However, after setting up Wordpress for the first time, the database changes you make will be persisted in a Docker data volume until/unless you delete it. We plan to provide a pre-populated sample database in the future.

Theme development

Sage uses gulp as its build system and Bower to manage front-end packages.

Available gulp commands

  • gulp — Compile and optimize the files in your assets directory
  • gulp watch — Compile assets when file changes are made
  • gulp --production — Compile assets for production (no source maps).

Documentation

Detailed documentation for this project will be located in the docs/ folder.

Sage 8.5 documentation is available at https://roots.io/sage/docs/.

About

Staging site:

https://wpdev.thepoliticalrev.org


Languages

Language:PHP 77.7%Language:JavaScript 13.6%Language:CSS 7.7%Language:Smarty 0.9%Language:HTML 0.0%Language:Shell 0.0%Language:ApacheConf 0.0%Language:Perl 0.0%