DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Vlad Filippov 6ac63587a4
Merge pull request #6913 from mozilla/i6900
fix(tests): fix tests for latest geckodriver compat
2019-01-31 08:13:54 -05:00
.circleci retry-cli 2019-01-08 21:09:05 -05:00
app Merge pull request #6859 from mozilla/issue-6573-pw-strength-pw-change r=@vbudhram, @ryanfeeley 2019-01-31 13:03:17 +00:00
docs chore(docs): Clarify the `action` query param documentation. 2019-01-04 14:16:24 +00:00
grunttasks chore(server): build extra templates for Mozilla China 2019-01-31 11:33:44 +08:00
locale
scripts
server chore(server): build extra templates for Mozilla China 2019-01-31 11:33:44 +08:00
tests Merge pull request #6913 from mozilla/i6900 2019-01-31 08:13:54 -05:00
.editorconfig
.eslintignore
.eslintrc
.gitattributes
.gitignore
.htmllintrc
.nsprc
.nvmrc
.sass-lint.yml
.travis.yml
AUTHORS Release v1.129.0 2019-01-22 21:29:32 +00:00
CHANGELOG.md Release v1.129.0 2019-01-22 21:29:32 +00:00
CONTRIBUTING.md
Dockerfile-build
Gruntfile.js
LICENSE
README.md
npm-shrinkwrap.json feat(npm): rewrap npm deps to pick up latest eslint-plugin-fxa rules 2019-01-21 16:31:55 -05:00
package.json Release v1.129.0 2019-01-22 21:29:32 +00:00
webpack.config.js

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, scripts and templates

Any changes made to the css resources, 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 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