DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Greg Guthe 81c86caa7b
fix(deps): add filtered npm audit
refs:

mozilla/fxa#303
https://bugzilla.mozilla.org/show_bug.cgi?id=1478025
2018-10-30 10:28:33 +00:00
.circleci fix(ci): Remove sync-exec from CI dep installation 2018-10-29 16:20:38 +00:00
app Merge pull request #6675 from mozilla/issue-6666-remove-en-us-totp-link r=@philbooth 2018-10-30 10:09:20 +00:00
docs chore(docs): Remove obsolete oauth-in-an-iframe docs. (#6041) r=@shane-tomlinson 2018-04-11 10:32:59 +02:00
grunttasks fix(totp): Remove en-US from the TOTP SUMO link. 2018-10-29 20:08:15 +00:00
locale refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
scripts fix(scripts): make tls-shrink script portable 2018-09-27 15:25:36 +01:00
server feat(metrics): map totp flow events to amplitude events 2018-10-29 16:35:13 +00:00
tests Merge pull request #6673 from mozilla/remove-sync-exec-from-ci-install r=@philbooth 2018-10-29 19:15:59 +00: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(webpack): upgrade to webpack 4 r=@vladikoff 2018-07-25 15:17:03 -04:00
.gitattributes Generated basic Yeoman project. 2013-12-04 11:55:48 -08:00
.gitignore feat(css): build CSS using webpack instead of grunt-sass (#6351) r=@vladikoff 2018-07-30 13:40:42 -04:00
.htmllintrc chore(htmllint): add htmllint to repo 2015-07-13 16:36:54 -07:00
.nsprc fix(deps): add filtered npm audit 2018-10-30 10:28:33 +00: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(deps): add filtered npm audit 2018-10-30 10:28:33 +00:00
AUTHORS Release v1.120.0 2018-09-05 22:24:47 -04:00
CHANGELOG.md Release v1.123.2 2018-10-26 11:52:50 +01:00
CONTRIBUTING.md refactor(deps): remove bower (#5915) r=@vbudhram 2018-02-15 15:52:17 -05:00
Dockerfile-build fix(docker): let's do only one npm version override 2018-06-13 16:46:57 -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(css): build CSS using webpack instead of grunt-sass (#6351) r=@vladikoff 2018-07-30 13:40:42 -04:00
npm-shrinkwrap.json fix(deps): add filtered npm audit 2018-10-30 10:28:33 +00:00
package.json fix(deps): add filtered npm audit 2018-10-30 10:28:33 +00:00
webpack.config.js feat(router): Groundwork to load views on demand. 2018-09-07 12:52:25 +01: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, 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