DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Ryan Feeley d8231ff88d Merge pull request #5138 from mozilla/i5035
fix(strings): update "Why Sync multiple devices?"
2017-06-13 13:10:16 -04:00
app fix(strings): update "Why Sync multiple devices?" 2017-06-13 12:21:54 -04:00
docs refactor(docs): Remove unused `mailcheck` and `webChannelId` query params. (#5048) r=vladikoff 2017-05-11 09:38:35 -04:00
grunttasks fix(build): Ensure the requireOnDemand files use SRI (#5094), r=@vbudhram 2017-05-23 12:45:08 -04:00
locale fix(l10n): move l10n install into postinstall (#4498) r=vbudhram 2016-12-13 11:49:32 -05:00
scripts fix(docker): add bower instructions and l10n fix (#4663) 2017-01-24 10:32:47 -05:00
server revert(sms): Use a distinct phone number for every SMS test. (#5133) 2017-06-12 17:48:13 +01:00
tests revert(sms): Use a distinct phone number for every SMS test. (#5133) 2017-06-12 17:48:13 +01:00
.bowerrc
.editorconfig
.eslintignore
.eslintrc feat(eslint-plugin-fxa): using 1 repository of eslint rules (#4698) 2017-02-09 21:10:26 -05:00
.gitattributes
.gitignore chore(git): Update .gitignore to support nested .eslintrc files (#4409) r=vladikoff 2016-11-15 19:01:12 -05:00
.htmllintrc
.nsprc chore(nsp): remove exceptions (#4416) r=pdehaan 2016-11-16 16:17:52 -05:00
.sass-lint.yml chore(sass-lint): add sass linting (#3732) r=vladikoff,pdehaan 2016-05-16 15:32:55 -07:00
.travis.yml fix(tests): make tests support Firefox 53 (#4973) 2017-04-21 14:47:03 -04:00
AUTHORS Release v1.87.0 2017-05-15 18:14:09 -04:00
CHANGELOG.md Release v1.89.0 2017-06-13 10:18:26 -04:00
CONTRIBUTING.md fix(l10n): move l10n install into postinstall (#4498) r=vbudhram 2016-12-13 11:49:32 -05:00
Dockerfile-build chore(docker): Use official node image & update to Node.js v4.8.2 (#4961) r=vladikoff 2017-04-19 16:36:01 -04:00
Gruntfile.js
LICENSE
README.md fix(tests): update to support latest Firefox driver (#4442) 2016-12-28 17:40:49 -05:00
bower.json feat(sms): Add support for the SMS signinCode (#5092) r=@vbudhram, @philbooth 2017-06-07 15:00:18 +01:00
circle.yml fix(docker): only push from one test node (#5065) r=jrgm 2017-05-23 14:14:50 -04:00
npm-shrinkwrap.json fix(deps): update some prod dependencies (#5137) 2017-06-13 13:05:05 -04:00
package.json fix(deps): update some prod dependencies (#5137) 2017-06-13 13:05:05 -04:00

README.md

Firefox Accounts Content Server

Build Status: Travis Build Status: Circle CI Coverage Status

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

Quick Start

Clone the repository, make sure you have required prerequisites installed. Run npm install and npm run start-remote. This will start a local fxa-content-server on http://127.0.0.1:3030 that works with remote Firefox Accounts servers.

If you want to install all Firefox Accounts servers locally follow the instructions on: fxa-local-dev to get a full development setup running. Please note that fxa-local-dev is the preferred way of contributing to Firefox Accounts.

Development Notes

Changes to stylesheets

To have the css resources automatically rebuilt after changes, run grunt sass watch. Now whenever a change is made to the .scss files, the corresponding css resources will be rebuilt.

Changes to scripts and templates

Any changes made to the scripts or the template files will automatically be reflected on page refresh.

Testing

Prerequisites:

Setup

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, Sass-lint, amdcheck and JSONLint on client side and testing JavaScript.
grunt sass watch rebuild css resources automatically when changes are made to the .scss files (file needs to be saved).
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