GithubHelp home page GithubHelp logo

sarvex / spartacus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/spartacus

0.0 2.0 0.0 3.26 MB

Spartacus is a single page app front-end for Webpay.

License: Other

JavaScript 93.65% Shell 0.42% CSS 3.80% HTML 2.12%

spartacus's Introduction

Build Status devDependency Status

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

spartacus's People

Contributors

muffinresearch avatar kumar303 avatar koehlermichael avatar kyoshino avatar aalam avatar petercpg avatar artpoli avatar milupo avatar tonnesm avatar clouserw avatar mstriemer avatar kelemeng avatar civas avatar andy-moz avatar matjaz-connector avatar unghost avatar yfdyh000 avatar flodolo avatar oremj avatar ujdhesa avatar birajkarmakar avatar jasnapaka avatar umeshagarwal avatar cesperanc avatar jordis avatar jasonthomas avatar jaredlockhart avatar kitsunenosarat avatar moz-verbatim avatar markh-bz avatar

Watchers

Sarvex โ˜  Jatasra avatar  avatar

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.