Ushahidi Platform Pattern Library

Installation

All jokes aside (for now at least), the Ushahidi Platform requires a few steps to get started.

Download or Clone from Github

  • Visit Github to download the repo to your local environment
  • or use git clone
                            
                                git clone https://github.com/ushahidi/platform-pattern-library.git
                            
                        

Install Dev Dependencies

You will need to install the following dependencies to run the Ushahidi Platform.

After installing NodeJS, run the following commands to install each dev dependency globally.

                            
                                npm install -g bower
                                npm install -g browserify
                                npm install -g gulp
                            
                        

Install Required Packages

After installing the dev dependencies you will need to install the following packages:

Bower

Node

  • Gulp plugins (these plugins are used for a variety of build tasks located within gulpfile.js)
  • The Ushahidi Platform uses node-sass (via the gulp-sass plugin), which is a node front end for LibSass. We chose Libsass over RubySass because of its speed and Node over Ruby dependency.
  • Watchify

Navigate to the root of your project and install these Node and Bower packages by simply running ...

                            
                                npm install
                            
                        

This will install both NPM and Bower dependencies!

No separate bower install command is required.

Download and Activate Live Reload Plugin

http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions

Navigate to project root and run ...

                            
                                gulp build
                            
                        
                            
                                gulp
                            
                        

Now visit http://localhost:8080/ to view the website in action.