Skip to content
Look under the hood of any website and tweak all the things https://goggles.mozilla.org
JavaScript CSS HTML
Latest commit 874f4be @Pomax Pomax Merge pull request #267 from Pomax/untoken
remove token from URL once extracted
Failed to load latest commit information.
lib help dialog
locale/en_US help dialog
public Merge pull request #267 from Pomax/untoken
views remove token once extracted
webxray
.bowerrc bug978786 - Implement new language picker
.gitignore refinements to goggles codebase now that it uses new id and publish
.travis.yml fixed bracketing and initialized recess module to make RECESS work
Gruntfile.js fixed bracketing and initialized recess module to make RECESS work
Procfile meaningful commit
README.md Update README.md
app.js
bower.json OS and browser detection
env.dist separate homepage and library client ids
goggles.sqlite refinements to goggles codebase now that it uses new id and publish
gtf-ignored-keys.json some localization string fixes
nodemon.json ftu
package.json OS and browser detection

README.md

Mozilla X-Ray goggles

This is a client-side (with small server component) application that hosts the Mozilla X-Ray Goggles library. It is dependent on having an [id.wmo] and [publish.wmo] end point to talk to for its user authentication and data publication functionality, respectively. The end point URLs can be set in the .env file used.

Getting up and running

In your Git directory (or whichever directory you want to place the goggles in), type:

$> git clone https://github.com/mozilla/goggles.webmaker.org
$> cd goggles.webmaker.org
$> npm install
$> cp env.dist .env

Then any time you wish to (re)compile the library and run the Goggles server, type:

$> npm start

Environment variables

The following environment variables are important to change, if you want to use the goggles in an atypical enviroment (i.e. one where any of the services used or relied upon does not use the default supplied .env file)

PORT: the port the service will run on.
APP_HOSTNAME: the domain the service will be running on, port included.
HACKPUBURL: the domain the service will be running on, port included.
ID_WMO_URL: the URL for the id.webmaker.org service, port included.
ID_WMO_CLIENT_ID: the client identifier assigned to goggles by thje id.webmaker.org instance pointed to.
PUBLISH_WMO_URL: the URL for the publish.webmaker.org service, port included.

Deployment

Deployment uses a Heroku pipeline.

Something went wrong with that request. Please try again.