fortytwo-studio / craft-cms-boilerplate
This is a boilerplate for Craft CMS
Installs: 166
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Open Issues: 0
Language:Twig
Requires
- craftcms/aws-s3: 2.2.2
- craftcms/ckeditor: 4.8.0
- craftcms/cms: 5.7.4
- ether/seo: 5.0.0
- johnhenry/matrix-block-anchor: ^2.0.1
- nystudio107/craft-vite: ^5.0.1
- sebastianlenz/linkfield: 3.0.0-beta
- solspace/craft-freeform: 5.10.11
- verbb/buttonbox: 5.0.0
- verbb/navigation: 3.0.8
- verbb/super-table: 4.0.4
- vlucas/phpdotenv: ^3.4.0
- wrav/oembed: 3.1.4
Requires (Dev)
- yiisoft/yii2-shell: ^2.0.5
- dev-master
- v2.0.1
- v2.0
- v1.5
- v1.4
- v1.3.1
- v1.3.0
- v1.2.10
- v1.2.9
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.17
- v1.1.16
- v1.1.15
- v1.1.14
- v1.1.13
- v1.1.12
- v1.1.11
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-add-license-1
This package is auto-updated.
Last update: 2025-05-02 12:27:41 UTC
README
This is a boilerplate for a Craft 5 CMS install with a few plugins already installed, custom file structure, and some pages with nav and a footer.
Usage
Firstly you need to create a database on your localhost.
To set up the boilerplate, you can use composer:
composer create-project fortytwo-studio/craft-cms-boilerplate [path]
- Alternatively you can clone the repo: https://github.com/fortytwostudio/craft-cms-boilerplate
- Run
composer install
- The
post-install-cmd
hook will run the setup, db import, npm install and finally removes the post-install-cmd scripts
- The
- Run
npm install
ViteJS
ViteJs is utilised in the project to watch and build sass and js.
Therefore you will need to have vite-cli
installed to rebuild files. You can install it with node: npm install -D vite
.
After that, just use npm run dev
in the terminal to turn on the file watchers.
!! Before deploying changes to staging or production, make sure to run npm run build
!!
Plugins installed
- craftcms/aws-s3
- supercool/buttonbox
- craftcms/ckeditor
- solspace/craft-freeform
- johnhenry/matrix-block-anchor
- verbb/navigation
- ether/seo
- verbb/super-table
- sebastianlenz/linkfield
- nystudio107/craft-vite
- wrav/oembed
Bootstrap
Bootstrap is installed as a node module and is imported via:
- CSS:
@webroot/src/css/style.css
- JS:
@webroot/src/js/main.js
Splide (sliders)
Splide is installed as a node module and is imported and initialised in:
@webroot/src/js/libraries/splide.js
vanilla-lazyload (lazyload)
vanilla-lazyload is installed as a node module and is imported and initialised in:
@webroot/src/js/libraries/lazy-load.js
JQuery
JQuery is installed as a node module. Can be imported into JS files via:
import $ from 'jquery';