DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Shane Tomlinson 9ecf71bb51 feat(metrics): Log `entrypoint` to the metrics.
* Add the FxDesktopRelier that imports `entrypoint` and `context` from the URL.
* Relier extended to import `service`, `redirectTo`, `client_id`, and `state`
* Initialize either the FxDesktopRelier or normal Relier on startup.
* Instead of Metrics importing values directly from the URL, they are fetched from the Relier and passed in on creation.

fixes #1568
2014-09-16 11:00:22 +01:00
app feat(metrics): Log `entrypoint` to the metrics. 2014-09-16 11:00:22 +01:00
grunttasks chore(build): Adding jscs validateIndentation rule 2014-09-05 15:21:30 -07:00
locale chore(l10n): update string templates 2014-08-19 14:12:59 -07:00
scripts fix(l10n): ensure that supported languages are a subset of the default supported languages 2014-07-30 17:21:21 -07:00
server feat(metrics): Log `entrypoint` to the metrics. 2014-09-16 11:00:22 +01:00
tests feat(metrics): Log `entrypoint` to the metrics. 2014-09-16 11:00:22 +01:00
.awsbox.json add static directory configuration param and fix awsbox config 2013-12-10 15:08:32 -08:00
.bowerrc Fixed gitignore. Added .bowerrc. 2013-12-04 14:17:06 -08:00
.editorconfig Generated basic Yeoman project. 2013-12-04 11:55:48 -08:00
.gitattributes Generated basic Yeoman project. 2013-12-04 11:55:48 -08:00
.gitignore feat(settings): profile images 2014-07-28 19:25:55 -07:00
.jscsrc chore(build): Adding jscs validateIndentation rule 2014-09-05 15:21:30 -07:00
.jshintrc Tweaking jshintrc rules slightly 2014-05-07 15:12:06 -07:00
.travis.yml tests(webdriver): Update Selenium version 2014-09-11 06:39:16 -04:00
CHANGELOG.md Release v0.21.0 2014-09-08 16:59:24 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2014-08-18 15:18:11 -07:00
CONTRIBUTORS.md feat(server): serve directly over https 2014-05-28 21:10:50 +02:00
Gruntfile.js fix(build): Exclude testing tools from production build 2014-05-23 18:55:03 -04:00
LICENSE Add MPL 2.0 license file. 2014-08-18 14:47:36 -07:00
README.md tests(webdriver): Update Selenium version 2014-09-11 06:39:16 -04:00
bower.json fix(avatars): integrate profile server backend for profile images 2014-09-15 13:03:47 -07:00
npm-shrinkwrap.json Updating to express@3.17.1 2014-09-15 14:15:44 -07:00
package.json Updating to express@3.17.1 2014-09-15 14:15:44 -07:00

README.md

Firefox Accounts Content Server

Travis Tests: Build Status: Travis Coverage Status Functional Tests: Build Status: Functional Tests

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

Prerequisites

  • node 0.10.x
  • npm
  • Grunt (npm install -g grunt-cli)
  • libgmp
    • On Linux, Install libgmp and libgmp-dev packages: sudo apt-get install libgmp3-dev
    • On Mac OS X: brew install gmp
  • fxa-auth-server running on 127.0.0.1:9000.

Development Setup

cp server/config/local.json-dist server/config/local.json
npm install
npm start

It will listen on http://127.0.0.1:3030 by default.

Note: If you have issues with npm install please downgrade to npm 1.3 using npm install -g npm@1.3 (Issue #1594)

Testing

Prerequisites:

Setup

  • Run Selenium Server
  • Run the Firefox Content Server locally: npm start
  • Run an instance of the fxa-auth-server at 127.0.0.1:9000.

e.g. in shell form:

java -jar selenium-server-standalone-2.43.1.jar &
cd fxa-auth-server
npm start &
cd ../fxa-content-server
npm start &

To run tests locally with Selenium:

npm test

Configuration

To change the default auth server edit server/config/*.json on your deployed instance.

{
  "fxaccount_url": "http://your.auth.server.here.org"
}

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 JSHint, 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