A sample application that utilises the Magento Boilerplate project.
The Magento Boilerplate project was started in 2012, as a proprietary project to satisfy the development needs of Webcomm.
In 2013, the project was rewritten into version 2.0
using Bootstrap 3 and subsequently open sourced in an attempt to gain interest and give back to the community.
Since then, the popularity of the project has grown up and above what we originally anticipated. Naturally, tools and practices have changed in the 21 months since version 2.0
.
Magento Boilerplate version 3.0
is rewritten entirely from the ground up, based on the Foundation CSS framework by Zurb.
So, what's improved in this version? A lot, it turns out:
page/html/topmenu.phtml
! The rest of the setup is pure CSS. This dramatically helps with both upgrading Magento and compatibility with third party extensions.body
tag) and a single, custom stylesheet file in the head
tag. No more stylesheet-overload and performance hit.version 2.0
There is no upgrade path between version 2.0
and version 3.0
. This is simply because the architecture of both of these systems is so dramatically different.
Simply fork or download the Magento Boilerplate App.
You may need to modify two files in the root of your Magento Boilerplate App:
config.json
is the file that instructs Gulp on how to compile assets and manage live reloading. You can modify the server that you will use for development and also choose a random port number.composer.json
declares the version of Magento version to be installed by Composer. By default, this is 1.9.0.1
, however the Magento Core Composer Installer (that the Magento Boilerplate App uses) supports:
1.7.0.2
1.8.1.0
1.9.0.0
1.9.0.1
1.9.1.0
Navigate to the root folder of your Magento Boilerplate App installation and run the following commands:
composer install
npm install
You'll now have your dependencies installed!
Any issues not directly related to the Magento Boilerplate during these processes (such as NodeJS/Gulp/Bower/Magento Core Composer Installer) should be reported to the appropriate projects.
Assuming you've configured a virtual host on your development machine and updated config.json
accordingly, simply run gulp && gulp watch
.
Once Magento Boilerplate has compiled all of your assets, it'll start a live-reloading web server at which point you may proceed with the installation process of Magento.