Giter VIP home page Giter VIP logo

geocluster-demo's Introduction

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.

geocluster-demo's People

Watchers

 avatar

Forkers

baden03

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.