Skip to content
Firefox Accounts Content Server
JavaScript HTML CSS Shell
Find file
Latest commit 0c84ed2 @vladikoff vladikoff Merge pull request #3468 from mozilla/issue-3457-invalid-timing-metrics
fix(metrics): Filter obviously invalid StatsD timings r=vladikoff
Failed to load latest commit information.
app chore(client): Add the AMO migration string to strings.js
docs chore(docs): Add `migration` possible values documentation.
grunttasks fix(sourcemap): add head.js sourcemap
locale fix(l10n): remove redundant l10n files
scripts chore(awsbox): remove no longer used awsbox
server fix(metrics): Filter obviously invalid StatsD timings
tests fix(metrics): Filter obviously invalid StatsD timings
.bowerrc chore(build): disable bower analytics
.editorconfig feat(oauth): suggest account to use during sign up if possible
.eslintignore chore(lint): switch from JSHint to ESLint
.eslintrc feat(build): Object literals must be sorted alphabetically.
.gitattributes Generated basic Yeoman project.
.gitignore chore(awsbox): remove no longer used awsbox
.htmllintrc chore(htmllint): add htmllint to repo
.jscsrc fix(lint): disallow const keyword
.travis.yml fix(travis): build and test on 0.10, 0.12 and 4.x
AUTHORS Release v0.55.0
CHANGELOG.md Release v0.55.0
CONTRIBUTING.md docs(contributing): Mention git commit guidelines
Dockerfile feat(docker): Dockerfile and README update for basic docker developme…
Gruntfile.js chore(build): Include license header at the top of minified main.js
LICENSE Add MPL 2.0 license file.
README.md chore(docs): update servers and selenium version
bower.json fix(devices): format connected date
npm-shrinkwrap.json fix(deps): update prod dependencies
package.json Release v0.55.0

README.md

Firefox Accounts Content Server

Build Status: Travis Coverage Status

Static server that hosts Firefox Account sign up, sign in, email verification, etc. flows.

Follow the instructions on: fxa-local-dev

The above link helps to install the following pre-requisites, and set up a development environment.

Prerequisites

  • node 0.10.x or 4.2.3+
  • npm
  • Grunt
  • libgmp
  • fxa-local-dev - Please note that this is the preferred way of contributing to Firefox Accounts.

Development Setup

Make sure that fxa-local-dev servers are running. The fxa-content-server will listen on http://127.0.0.1:3030 by default.

Note: If you have issues with npm install please update to npm 2.0+ using npm install -g npm@2 (Issue #1594)

Testing

Prerequisites:

Setup

  • Run Selenium Server

e.g. in shell form:

java -jar selenium-server-standalone-2.48.2.jar 

To run tests locally with Selenium:

npm test

To change the default auth server edit server/config/*.json on your deployed instance.

{
  "fxaccount_url": "http://your.auth.server.here.org"
}

Note that testing with Selenium via Docker does not work at present, so all testing must be carried out via your normal operating system's npm & Java tooling.

Grunt Commands

Grunt is used to run common tasks to build, test, and run local servers.

TASK DESCRIPTION
grunt build build production resources. See task source for more documentation
grunt clean remove any built production resources.
grunt lint run ESLint, JSONLint, and JSCS (code style checker) on client side and testing JavaScript.
grunt server run a local server running on port 3030 with development resources.
grunt server:dist run a local server running on port 3030 with production resources. Production resources will be built as part of the task.
grunt test run local Intern tests.
grunt version stamp a new minor version. Updates the version number and creates a new CHANGELOG.md.
grunt version:patch stamp a new patch version. Updates the version number and creates a new CHANGELOG.md.

Servers

License

MPL 2.0

Something went wrong with that request. Please try again.