DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
John Morrison 401165f782 fix(docker): base image node:8-alpine and upgrade to npm6 2018-06-13 13:39:58 -07:00
app Merge pull request #6274 from mozilla/fix-ios-zoom r=@vbudhram 2018-06-12 17:39:09 -07:00
docs chore(docs): Remove obsolete oauth-in-an-iframe docs. (#6041) r=@shane-tomlinson 2018-04-11 10:32:59 +02:00
grunttasks feat(style): Use system fonts instead of Fira Sans (#6146) r=@vladikoff 2018-05-02 22:01:10 -04:00
locale refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
scripts refactor(l10n): extract l10n from node_modules (#5395) r=@shane-tomlinson 2017-09-06 13:18:38 +01:00
server chore(deps): Use native promises instead of bluebird. 2018-06-12 18:33:52 -07:00
tests chore(deps): Use native promises instead of bluebird. 2018-06-12 18:33:52 -07:00
.editorconfig feat(forms): replace our password advice with responsive message (#5940) r=@vbudhram,@ryanfeeley 2018-03-02 20:41:37 -05:00
.eslintignore refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
.eslintrc feat(eslint): bring back indent rule (#5887) r=@vbudhram 2018-02-08 09:35:23 -05:00
.gitattributes Generated basic Yeoman project. 2013-12-04 11:55:48 -08:00
.gitignore feat(style): Use system fonts instead of Fira Sans (#6146) r=@vladikoff 2018-05-02 22:01:10 -04:00
.htmllintrc chore(htmllint): add htmllint to repo 2015-07-13 16:36:54 -07:00
.nsprc fix(config): Allow configuring statsd host (#6208) r=@vladikoff,@shane-tomlinson 2018-05-17 15:01:35 -04:00
.nvmrc chore(npm): update nvmrc to node 8 2018-04-23 20:40:09 -04:00
.sass-lint.yml feat(sass): SASS lint warnings are now errors. (#5700) r=@vladikoff 2017-11-10 10:20:01 -05:00
.travis.yml fix(ci): clean up travis logs (#6119) 2018-04-25 17:05:58 -04:00
AUTHORS Release v1.111.0 2018-05-01 17:46:40 -04:00
CHANGELOG.md Release v1.113.3 2018-06-06 09:53:36 -04:00
CONTRIBUTING.md refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
Dockerfile-build fix(docker): base image node:8-alpine and upgrade to npm6 2018-06-13 13:39:58 -07:00
Gruntfile.js chore(dependencies): upgrade away from deprecated mozlog usage (#5349) r=vladikoff 2017-08-11 10:24:31 -04:00
LICENSE Add MPL 2.0 license file. 2014-08-18 14:47:36 -07:00
README.md feat(docs): Add separators to README.md (#5784) r=@shane-tomlinson 2017-12-15 20:18:03 +00:00
circle.yml fix(circle): change Firefox destination (#36); r=@rfk 2018-04-05 07:39:37 +10:00
npm-shrinkwrap.json chore(deps): Use native promises instead of bluebird. 2018-06-12 18:33:52 -07:00
package.json chore(deps): Use native promises instead of bluebird. 2018-06-12 18:33:52 -07:00
webpack.config.js feat(metrics): Generate a node.js compatible experiment name list (#6087) r=@philbooth 2018-04-19 14:48:21 +02: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