The Firefox Marketplace frontend for lower-end devices
Перейти к файлу
michael.koehler1@gmx.de 50593d7f97 Commit from Mozilla Verbatim by user michael.koehler1@gmx.de.: 171 of 171 strings translated (0 fuzzy). 2015-01-22 10:12:06 +00:00
bin Bug 925409 Implements credits page, includes responses from reviews 2014-02-26 13:33:49 -08:00
hearth Added region ZAF (bug 1088431) 2014-11-18 12:45:26 -08:00
lib don't download/rewrite app icons in transformer (bug 1009910) 2014-05-13 17:07:18 -07:00
locale Commit from Mozilla Verbatim by user michael.koehler1@gmx.de.: 171 of 171 strings translated (0 fuzzy). 2015-01-22 10:12:06 +00:00
package add bn-BD (bug 1036190) 2014-07-08 21:44:11 -07:00
smokealarm Change the default pagination to 10 results instead of 25 on mobile (bug 997793) 2014-04-22 10:46:55 -07:00
.gitignore add preloaded.json to the package 2014-04-23 17:08:15 -07:00
.travis.yml Add langpacks to Travis tests to catch PO file errors 2013-12-10 18:43:09 -08:00
Gruntfile.js normalize category name/pluck, fix slow issue due to always pulling API, always pull from lf 2014-05-14 12:42:08 -07:00
LICENSE Add license (closes issue #62) 2013-03-24 17:57:08 -07:00
Makefile rm inferno and yulelog 2014-12-15 06:28:01 -08:00
README.md rm inferno and yulelog 2014-12-15 06:28:01 -08:00
fabfile.py fabfile: add jenkins deploy targets 2015-01-12 13:17:57 -08:00
package.json install commonplace locally 2014-10-30 15:20:21 -07:00
settings.js [wip] offline category support 2014-04-24 13:32:53 -07:00

README.md

Marketplace Tarako

The Firefox Marketplace frontend for lower-end devices.

Glossary

Ashes
A secure debug information collection server
Damper
A node.js server that serves a browser-friendly version of Fireplace
Flue
A mocked-out version of the Marketplace API.
Hearth
The source code for Fireplace.
Smoke Alarm
A functional test runner for great justice.

Installation

npm install
npm install -g commonplace

Flue

Comprehensive Flue documentation can be found in Flue's README.

Packaged App

Docs can be found on the Wiki.

Please note that any file that belongs in the package must get added to package/files.txt.

Usage

If you haven't already, run commonplace init to install local settings files. Some settings (media/js/settings_local.js) may need to be updated if you plan to run a local setup, including api_url.

From the terminal, run the following command

damper

This will start a local server and filesystem watcher on 0.0.0.0:8675 by default.

For more options, read the damper documentation.

For instructions on running Flue (the mock API server), please see the Flue docs.

Compiling

To run the compilation process, which compiles templates, CSS, and locale files, run the following command:

commonplace compile

Compiling Includes

If you need to compile include files (i.e.: for Space Heater or a less HTTP- heavy version of the project), run commonplace includes. This will generate two files:

hearth/media/js/include.js
hearth/media/css/include.css

The CSS in include.css is generated in the order in which CSS files are included in hearth/index.html.

include.js uses a lightweight AMD loader (rather than require.js). This keeps file size down and also makes it possible to name-mangle internal keywords which otherwise wouldn't be minifiable. Note that the only safe globals are require and define---using any other non-browser globals will result in errors. I.e.: accessing _ without requiring 'underscore' will cause the code to fail. Also note that all modules must include a name as the first parameter.

Localizing

A detailed guide to extracting strings and creating JS language packs can be found on the wiki.

The API

Read the docs.

Tests

Install casper

brew install casperjs

Running unit tests

Load http://localhost:8675/tests in your browser.

Running functional tests

Before you run the functional tests, make sure your settings_local.js file has the subset of keys found in settings_travis.js.

make test

Local Development With Nginx

See Using Fireplace with Zamboni