DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Vlad Filippov 86b8d1fefe Release v0.54.0 2016-01-12 10:33:08 -05:00
app Merge pull request #3341 from mozilla/issue-3079-sync-preferences-verification-page 2016-01-12 14:23:20 +00:00
docs feat(client): Add a "Sync Preferences" button for fx-desktop-v3 broker. 2016-01-12 12:46:17 +00:00
grunttasks fix(sourcemap): add head.js sourcemap 2016-01-04 19:19:34 -05:00
locale fix(l10n): remove redundant l10n files 2015-11-16 15:18:25 -05:00
scripts chore(awsbox): remove no longer used awsbox 2015-12-18 19:16:40 -08:00
server fix(csp): make CSP reports more detailed, remove sample rate 2015-12-31 13:23:46 -05:00
tests Merge pull request #3341 from mozilla/issue-3079-sync-preferences-verification-page 2016-01-12 14:23:20 +00:00
.bowerrc chore(build): disable bower analytics 2015-07-06 17:46:05 -07:00
.editorconfig feat(oauth): suggest account to use during sign up if possible 2015-04-28 16:59:10 -04:00
.eslintignore chore(lint): switch from JSHint to ESLint 2015-06-12 14:06:52 -07:00
.eslintrc feat(build): Object literals must be sorted alphabetically. 2015-09-28 12:00:58 +01:00
.gitattributes Generated basic Yeoman project. 2013-12-04 11:55:48 -08:00
.gitignore chore(awsbox): remove no longer used awsbox 2015-12-18 19:16:40 -08:00
.htmllintrc chore(htmllint): add htmllint to repo 2015-07-13 16:36:54 -07:00
.jscsrc fix(lint): disallow const keyword 2015-08-27 15:36:52 -07:00
.travis.yml fix(travis): build and test on 0.10, 0.12 and 4.x 2015-12-10 20:37:32 -05:00
AUTHORS Release v0.54.0 2016-01-12 10:33:08 -05:00
CHANGELOG.md Release v0.54.0 2016-01-12 10:33:08 -05:00
CONTRIBUTING.md chore(docs): Update the commit body guidelines to include the issue number 2015-07-28 13:19:17 -07:00
Dockerfile feat(docker): Dockerfile and README update for basic docker development workflow 2015-02-17 22:16:13 -05:00
Gruntfile.js chore(build): Include license header at the top of minified main.js 2015-07-01 10:04:26 -07:00
LICENSE Add MPL 2.0 license file. 2014-08-18 14:47:36 -07:00
README.md fix(docs): remove outdated Docker docs 2016-01-04 13:56:41 -05:00
bower.json feat(deps): update fxa-js-client to v0.1.33 2015-11-23 23:59:45 -05:00
npm-shrinkwrap.json fix(deps): update prod dependencies 2015-12-15 14:09:46 -05:00
package.json Release v0.54.0 2016-01-12 10:33:08 -05:00

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
  • 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.46.0.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