gecko-dev/browser/components/loop/standalone
Dan Mosedale c4b8c9e1e5 Bug 1147167-Upgrade React in Hello to 0.13.3, r=Standard8
--HG--
rename : browser/components/loop/content/shared/libs/react-0.12.2.js => browser/components/loop/content/shared/libs/react-0.13.3.js
2015-11-06 12:23:03 -08:00
..
content Bug 1147167-Upgrade React in Hello to 0.13.3, r=Standard8 2015-11-06 12:23:03 -08:00
.gitignore Bug 1188509-Bundle Hello standalone JS for performance, r=Standard8 2015-09-28 13:18:22 -07:00
Makefile Follow-up to bug 1212272 - use the correct cp command. r=dmose 2015-10-08 21:25:19 +01:00
package.json Bug 1147167-Upgrade React in Hello to 0.13.3, r=Standard8 2015-11-06 12:23:03 -08:00
README.md Bug 999737-add ESLint to run-all-loop-tests; update docs, rs=Standard, DONTBUILD 2015-04-01 14:08:38 -07:00
server.js Bug 1215487 - Fix Mozilla logo in Chrome for Loop Standalone [r=Mardak] 2015-11-03 14:29:55 -08:00
webpack.config.js Bug 1215322 - remove need for CSP unsafe-eval in Hello, r=Mardak 2015-10-29 15:56:48 -07:00

Loop Client

Prerequisites

NodeJS and npm installed.

Installation

Fetch and install/build any NPM dependencies:

$ make install

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_FEEDBACK_API_URL sets the root URL for the input API; defaults to the input stage server (https://input.allizom.org/api/v1/feedback). Don't forget to set this value to the production server URL when deploying to production.
  • LOOP_FEEDBACK_PRODUCT_NAME defines the product name to be sent to the input API (defaults: Loop).

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.

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.