Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.
/ altair Public archive

A Sass- and Grunt-based development front-end starter kit, running on file-based Kirby CMS

License

Notifications You must be signed in to change notification settings

jolantis/altair

Repository files navigation

Altair

Altair is a Sass- and Grunt-based front-end starter kit, built on top of file-based CMS Kirby.

Kirby

Kirby is a file-based CMS -- no database involved -- for storing (and retrieving) content. All content is stored in plain text files (located in the /content folder). For more information about Kirby CMS go here: http://getkirby.com.

The panel

The Kirby Panel is not (yet) a part of Altair, but can easily be added.

Installation

Altair (or for that matter Kirby) does not require a database, which makes it pretty straightforward to install.

Requirements

Server

Kirby and therefore Altair runs on a PHP 7.x (other versions untested for Altair), Apache or Nginx stack.

Development

  • Node.js
  • Grunt

Git

If you are familiar with Git, clone Altair's repository from Github.

$ git clone --recursive https://github.com/jolantis/altair

The --recursive flag is necessary to initiate and pull the kirby and toolkit submodules.

  1. Make sure that all folders and files within content are writable
  2. Make sure the thumbs folder is writable
  3. Rename both site/config/config.altair.test.php and site/config/config.altair.artlantis.nl.php to reflect your own local and staging environments URL's.
  4. Make sure to update and/or check in site/config/config.php the following config variables:
c::set('license', 'your license key');
c::set('google.analytics.id', 'TRACKING ID IS NOT SET');

Grunt

To run Altair locally, assets have to be generated:

  1. Type in command line: sudo npm install

  2. To generate dev assets and start the watch task: grunt develop or just grunt

  3. Other configured grunt tasks:

    • grunt styles => generate dev styles only
    • grunt scripts => generate dev scripts only
    • grunt criticalcss => generate criticalCSS only
    • grunt icons => generate grunticon icon images (svg + png fallback) only
    • grunt imageoptim => optimize all jpg’s and png’s in content folder only
  4. To deploy to staging and/or production environment: grunt build (version number is bumped from 0.0.2 to 0.0.3 and minified assets are generated)

  5. To bump version number from 0.0.x to 0.1.0: grunt release

Authors

This project is developed and maintained by Jonathan van Wunnik artlantis.nl and Marijn Tijhuis fatpixel.nl.

License

Code and contributions have 'MIT License'.

About

A Sass- and Grunt-based development front-end starter kit, running on file-based Kirby CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •