marmelab/menu-o-matic

Name: menu-o-matic

Owner: marmelab

Description: Create and manage menus using a WYSIWYG interface

Created: 2013-08-22 21:19:47.0

Updated: 2016-02-26 05:59:27.0

Pushed: 2014-08-28 08:16:49.0

Homepage: http://marmelab.github.io/menu-o-matic/

Size: 12782

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

menu-o-matic

Create and manage menus using a WYSIWYG interface. Powered by Packery and Backbone.

Installation

Bower dependencies are committed in the repository, so you don't need to setup anything.

Just don't forget to commit them again each time you do a:

wer install
Usage

Since the application uses RequireJS to manage dependencies, JavaScript files are loaded in AJAX and can't be served direclty from the filesystem (or the same origin policy fails). Therefore you need to run a server for the application to work, which in OS X is as simple as getting into the application directory and typing:

thon -m SimpleHTTPServer 4000
 using the built-in server
m start

Then, browse to http://localhost:4000 and start building your menu.

Frontend tests

First, install dependencies and selenium executable:

m install
rl https://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar > selenium-server-standalone.jar

Next, start selenium with Firefox

va -jar selenium-server-standalone.jar

Finally, run tests using mocha, or the built-in test task:

m test
Running tests with Chrome

Firefox is included by default in the selenium-server-standalone-2.21.0.jar, if you want to use Chrome, download the chromedriver at https://code.google.com/p/chromedriver/downloads/list.

Then, start Selenium with Chrome:

va -jar selenium-server-standalone.jar -Dwebdriver.chrome.driver=/[path-to]/chromedriver

And start tests with the TEST_BROWSER environment variable set to chrome:

ST_BROWSER=chrome npm test

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.