- Craft CMS 3
- Foundation 6
- Redactor
- SASS and JS compiler and minifier (using gulp)
- MAMP helper for database exports
- Basic macros:
- Create a linked entry
- Create a button
- Display an image (with fallback)
- Create an excerpt
- Add an active class to navigation
- Some template files:
- Index
- Blog entry
- Blog list
- 404
- HTML and OpenGraph metadata
- Clone the repo
git clone https://github.com/brycekirk/craft_3_foundation_6_boilerplate
- Install the packages (from within your new project directory):
npm install
bower install
composer install
- Create a local database
- Get a security key
./craft setup/security-key
and create.env
- Setup Craft
./craft setup
and fill in the prompts - Point your server to
PROJECT_FOLDER/web
and get at it!
- Login to the Craft control panel and update Craft and Redactor to their latest versions
- Run
gulp watch
from your project directory to watch for changes toassets/js/src/scripts.js
andassets/scss/styles.scss
config/project.yaml
will generate some initial fields:body
,image
,defaultMetaDescription
anddefaultSocialImage
, a homepage entry and an images asset volume located atassets/uploads/img
- If you want to stop using a project config file, delete
project.yaml
and the'useProjectConfigFile' => true,
line fromconfig/general
- By default, all of foundation.js is included. You can change this by removing the
'bower_components/foundation-sites/dist/js/foundation.min.js',
line fromgulpfile.js
and manually adding the paths to specific Javascript plugins frombower_components/foundation-sites/dist/js/plugins/PLUGIN_NAME.js