/Cobiro

Primary LanguageHTML

CraftCMS Boilerplate - MAMA CPH

CircleCI

A boilerplate for Craft CMS using webpack, babel and postcss. Uses scss-framework from baseguide

Requirements

Local server and database using docker.

SSH into the server and install the following:

apt-get install webp
apt-get install jpegoptim​
apt-get install optipng​

Needs composer installed in the project directory - then run: php composer.phar install

The Craft setup page will be available at http://<Hostname>/index.php?p=admin/install (substituting <Hostname>) To debug read more about the craft installation: CraftCMS installation

Development

$ npm install
$ npm run dev # compiles scss and js with hot reloading
$ docker-compose up -d # starts mysql and craft containers

Production

$ npm install
$ npm run build # Compiles, minifies and autoprefixes scss into a seperate css-file and next-gen js