WordPress theme and plugin set for the Carnegie International 2018 site, based on the Sage starter theme.
| Prerequisite | How to check | How to install |
|---|---|---|
| Node.js >= 8.11 | node -v |
nodejs.org or nvm |
| gulp >= 3.8.10 | gulp -v |
npm install -g gulp |
| Bower >= 1.3.12 | bower -v |
npm install -g bower |
Edit your /etc/hosts file (e.g. sudo nano /etc/hosts) and add the following two entries to the line beginning with 127.0.0.1:
carnegieinternational.test 2018.carnegieinternational.test
Install Docker and Docker Compose (included with Docker on Mac and Windows) then run docker-compose up -d from the project directory. To start the web and database containers.
To install PHP packages, download Composer and run php composer.phar install from the project root directory.
For front-end tooling, first install node (recommended version 8.11+)
Check out nvm for a simple way to manage node versions on your development machine.
After node is installed, install gulp and bower and run npm install and bower install from within the theme directory to install any other dependencies.
Run npm run start from within the theme directory to load a development server with Browsersync enabled. Static assets will be automatically recompiled and bundled when saved.
Run npm run build from within the theme directory to build assets for production and update the asset manifest.
Composer should install the Codeception testing framework.
Download (or install via package manager) phantomjs and run phantomjs --webdriver=4444 to start the headless web driver on port 4444.
Run php codecept.phar run to start the test suite.