Spartacus is a single page app front-end for Webpay.
JavaScript CSS HTML Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin Fix up syntax of shell command Dec 2, 2014
config Prevent tests calling external urls Feb 27, 2015
locale L10n Extract/compile script. Today's lucky number is 13510. Feb 24, 2016
public Merge pull request #222 from muffinresearch/wrap-long-errors Apr 7, 2015
server feedback, stop polling on error and fix the tests Apr 1, 2015
styleguide Truncate long errors to avoid breaking the layout (bug 1151774) Apr 7, 2015
templates Allow super user to simulate network (bug 1034118) Jan 26, 2015
tests feedback, stop polling on error and fix the tests Apr 1, 2015
.gitignore Remove compiled locale json/js Jun 5, 2014
.jshintrc
.travis.yml Try containerized builds Sep 7, 2015
Dockerfile Add note re: use case for Dockerfile. Aug 4, 2014
Gruntfile.js Just run under Gecko Sep 14, 2015
LICENSE Update to MPL 2.0 Jan 27, 2014
README.md Add unmaintained badge + notice. Feb 15, 2016
bower.json
fabfile.py Update fabfile to include rpm cleanup. Apr 2, 2015
package.json
spartacus.png Add logo image Mar 12, 2014

README.md

No Maintenance Intended Build Status devDependency Status

Please note: this project is currently unmaintained and is not (or soon will not) be in active use by Mozilla.

SPARTACUS

Spartacus is a single page app front-end for Webpay

Running Spartacus

  • Checkout the build
  • Install PhantomJS
    • on Mac OS X with homebrew: brew install phantomjs
    • on Ubuntu: sudo apt-get install phantomjs
  • Run npm install
  • Run npm install -g grunt-cli (This is the recommended approach for installing the cli - the runner is local to the project see http://gruntjs.com/getting-started#installing-the-cli)
  • Use one of the following grunt commands

Running the dev server

Run grunt start

Running with Webpay

You'll need to point webpay at your running Spartacus installation for static files only.

The webpay setting SPARTACUS_STATIC is pointing at localhost:2604 by default. Modify this if your local settings if you need to.

Spartacus must be reachable by the client making payments, so you'll need to either expose the port it's running on (2604 by default) or reverse proxy it through something like nginx.

You'll also need to make sure your local webpay settings have SPA_ENABLE and SPA_ENABLE_URLS are both set to True. This will enable webpay to serve Spartacus for the relevant urls.

Changing settings via Webpay

To change settings you can override any of the JS settings (see public/js/settings.js) by updating the settings in webpay. The settings key to look for is SPA_SETTINGS.

Running the styleguide

Run grunt styleguide

Running the unit tests

Run grunt test

Running the UI tests

Run grunt uitest. To run a single UI test pass the file with a flag e.g:

grunt uitest --test tests/ui/test-basic.js

Bugs

Tracker bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=837289