Skip to content
This repository has been archived by the owner. It is now read-only.
🔥 Frontend for the Firefox Marketplace
Branch: master
Clone or download
ddurst Merge pull request #1622 from mozilla/fix-shutdown-string
Remove double space from Marketplace shutdown string
Latest commit 8e2bdd5 Jan 30, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Update/Add translations for all error messages in the iframed app (bu… Mar 19, 2015
package Add compatibility for FxOS 2.0, which does not have hasFeature() (bug… Nov 5, 2015
.gitignore new nav and header (bug 1209232) Oct 26, 2015
Makefile Add Web QA UI tests to Travis-CI Sep 23, 2015 up readme Aug 4, 2015
config.js Bug 1433481 - Show a shutdown banner on every page Jan 26, 2018 Remove package_update from build step in fabfile. Apr 24, 2015
gulpfile.js sync iframe js bundle task Jul 31, 2015
test-main.js Use "Install" button text for purchased apps (bug 1183072) Jul 21, 2015

Marketplace Frontend

Build Status

The Firefox Marketplace frontend.

screenshot of Marketplace homepage

Installation and Usage

make install
make serve

This will start a web server on http://localhost:8675.

Building for Production

Our build process bundles up our JS, minifies our CSS, compiles our templates, and extracts locales into JS modules. To run the build process:

make build

This will generate files including:


Developing the Packaged App

To package the Marketplace frontend, run:

make package

This will output a package and output to package/archives/. You can use WebIDE to install this package in the device or simulator.

Further details can be found in the Marketplace documentation.

Marketplace Mock API

We have an instance of a mocked version of the Marketplace API at Documentation can be found in marketplace-api-mock's repository.

iframed Package

We currently ship with an iframed version of the Marketplace frontend. It is a package that contains an iframe pointing to the Marketplace website. See more details within the iframe package directory.


A detailed guide to extracting strings and creating JS language packs is located on the wiki.


We use CasperJS to write UI tests and mocha, chai and sinon for unit tests.

Running Unit Tests

make unittest

This will launch the karma test runner that will run the unit tests in a new instance of Firefox.

Running Functional and UI Tests

Before running the functional and UI tests, your settings_local.js should have api_url and media_url pointing to an instance of marketplace-api-mock. You can easily achieve this by setting the API environment variable when calling make serve, this will overwrite your current api_url and media_url settings.

First, start a server with:

API=mock make serve

Then, run the tests against it. We support both PhantomJS and SlimerJS to run tests in WebKit and Gecko, respectively. To run both use make uitest, if you just want to run them in one browser make uitest-phantom or make uitest-slimer.

make uitest-phantom

Running Functional and UI Tests in SlimerJS

SlimerJS requires a path to a firefox binary. make uitest-slimer will try to use /Applications/ which is the path to your default Firefox on Mac. This path might not work for you and best results are achieved by using Firefox 30. You can download a copy of Firefox 30 on To set the path to your firefox use the SLIMERJSLAUNCHER environment variable. You might want to call export SLIMERJSLAUNCHER=/path/to/firefox in your shell's setup script.

SLIMERJSLAUNCHER=/Applications/ make uitest-slimer

Running a Single Functional or UI Test

UITEST_FILE=tests/ui/<PATH_TO_TEST_FILE> make uitest

Serving with Nginx

If you wish to serve the Marketplace frontend with nginx, which is often useful for keeping all the Marketplace projects on the same domain, read about serving Fireplace with Nginx.

You can’t perform that action at this time.