gecko-dev/browser/components/loop/standalone
Mark Banner 4f84be168b Bug 1020876 Route desktop client XHRs though the mozLoop API to share hawk implementation with MozLoopService. r=ttaubert
--HG--
rename : browser/components/loop/content/shared/js/client.js => browser/components/loop/content/js/client.js
rename : browser/components/loop/test/shared/client_test.js => browser/components/loop/test/desktop-local/client_test.js
2014-07-03 09:23:38 +01:00
..
content Bug 1020876 Route desktop client XHRs though the mozLoop API to share hawk implementation with MozLoopService. r=ttaubert 2014-07-03 09:23:38 +01:00
.gitignore Bug 976127 - Get marionette to drive shared and desktop-local unit tests, r=Standard8 2014-05-29 21:20:11 +01:00
.jshintignore Bug 985596 - Refactored shared assets & tests. r=dmose 2014-05-29 21:20:11 +01:00
.jshintrc
Makefile Bug 987086 Loop web client should use configuration for determining server url. r=nperriault, r=Standard8 2014-06-05 15:18:41 +02:00
package.json
README.md Bug 987086 Loop web client should use configuration for determining server url. r=nperriault, r=Standard8 2014-06-05 15:18:41 +02:00
server.js Bug 994485 Make standalone tests work with combined repositories/changed file layout, and fix the standalone server. r=dmose 2014-05-29 21:25:39 +01:00

Loop Client

Prerequisites

NodeJS and npm installed.

Installation

$ make install

Configuration

You will need to generate a configuration file, you can do so with:

$ make config

It will read the configuration from the LOOP_SERVER_URL env variable and generate the appropriate configuration file. This setting defines the root url of the loop server, without trailing slash.

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.