Skip to content

mpgeek/Geocluster-Demo

Repository files navigation

Geocluster Demo for Drupal 7

alt tag

Minimal build spec for demoing the Leaflet-Geocluster stack in Drupal 7.This demo kit is built with Grunt Drupal Tasks via Gadget. Check the documentation at for Grunt Drupal Tasks (GDT) for more about the awesomeness of Drupal automation with Grunt.

Requirements

Composer

There are non-Drupal, third party libraires in use in the GDT architecture that can be built easily with composer. If you don't have composer on your system, you can install it locally into the project with the following command:

$ curl -sS https://getcomposer.org/installer | php

A global installation is probably more useful long terms. See the composer global installation instructions for more on that.

Node.js (v0.10.0 or better)

Use a either package manager like apt-get, brew, or yum or a standalone installer.

Grunt

After Node.js, you'll need the grunt-cli, the Grunt command line interface. Get Grunt CLI by running:

$ npm install -g grunt-cli

Usage

First clone the repo, and change in to the root of the project. Build the dependencies and the initial Drupal build:

$ git clone https://github.com/mpgeek/Geocluster-Demo.git PROJECT_ROOT
$ cd PROJECT_ROOT
$ composer install
$ npm install
$ grunt drushmake

Substitute whatever name you like for PROJECT_ROOT. We'll use it as a reference to the repo base directory in rest of the instructions.

Next, you'll need an apache virtual host (or similar) and a database configured for the test content. For the purposes of this example, if you use d7-gecluster.dev as your virtual host domain, you can use the scaffolding as-is; point your virtual host to build/html.

Then create a database using your preferred method. Now make a copy of the example local settings file:

$ cd PROJECT_ROOT/src/sites/d7geocluster.dev
$ cp settings.local.example.php settings.local.php

Note that we used a site directory named after the virtual host domain. Substitute whatever you used in your environment for that directory name. Now edit that file and fill in your database parameters.

Next move the environment scaffolding into the demo build, and spin up the demo content:

 $ grunt scaffold
 $ cd PROJECT_ROOT/build/html/sites/d7-gecluster.dev
 $ drush site-install -y
 $ drush en geocluster_demo -y
 $ drush en geocluster_demo_content -y

That final command will take a few minutes. Before you try to visit the site, make sure you give php enough memory. 512M works well for the demo, but isn't an absolute minimum. Once that is set restart apache and visit your virtual host. You should see something like the image at the top.

About

Minimal Drupal 7 build for the Leaflet-Geocluster stack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published