gecko/browser/components/loop/standalone
Mark Banner 0dfd826583 Bug 1067937 Fix translation of Loop's link-clicker UI in Google Chrome. r=dmose
--HG--
rename : browser/components/loop/standalone/content/libs/l10n-gaia-4e35bf8f0569.js => browser/components/loop/standalone/content/libs/l10n-gaia-02ca67948fe8.js
2014-09-17 19:23:31 +01:00
..
content Bug 1067937 Fix translation of Loop's link-clicker UI in Google Chrome. r=dmose 2014-09-17 19:23:31 +01:00
grunttasks Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00
.gitignore Follow-up to bug 1044411, fix the Loop standalone .gitignore file to properly exclude index.html. rs=mikedeboer over irc. NPOTB DONTBUILD 2014-09-17 14:18:25 +01:00
.jshintignore Bug 985596 - Refactored shared assets & tests. r=dmose 2014-05-29 21:20:11 +01:00
.jshintrc
bower.json Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00
Gruntfile.js Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00
Makefile Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00
package.json Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00
README.md Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00
server.js Bug 1044411 - Generate Loop ToS static content, r=abr,dmose; rs=ted for .hgignore changes 2014-08-26 12:58:00 -05:00

Loop Client

Prerequisites

NodeJS and npm installed.

Installation

Fetch and install/build any NPM and bower dependencies, as well as the localized Terms-of-Service content:

$ make install

Some of the above is driven by Gruntfile.js.

Configuration

If you need a static config.js file for deployment (most people wont; only folks deploying the development server will!), you can generate one like this:

$ make config

It will read the configuration from the following env variables and generate the appropriate configuration file:

  • LOOP_SERVER_URL defines the root url of the loop server, without trailing slash (default: http://localhost:5000).
  • LOOP_PENDING_CALL_TIMEOUT defines the amount of time a pending outgoing call should be considered timed out, in milliseconds (default: 20000).

Usage

For development, run a local static file server:

$ make runserver

Then point your browser at:

  • http://localhost:3000/content/ for all public webapp contents,
  • http://localhost:3000/test/ for tests.

Note: the provided static file server for web contents is not intended for production use.

Code linting

$ make lint

License

The Loop server code is released under the terms of the Mozilla Public License v2.0. See the LICENSE file at the root of the repository.