Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

marmelab/menu-o-matic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

menu-o-matic

archived Archived Repository
This code is no longer maintained. Feel free to fork it, but use it at your own risks.

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:

$ bower 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:

$ python -m SimpleHTTPServer 4000
# or using the built-in server
$ npm start

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

Frontend tests

First, install dependencies and selenium executable:

$ npm install
$ curl https://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar > selenium-server-standalone.jar

Next, start selenium with Firefox

$ java -jar selenium-server-standalone.jar

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

$ npm 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:

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

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

$ TEST_BROWSER=chrome npm test

About

Create and manage menus using a WYSIWYG interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •