Firefox Accounts profile attached service.
JavaScript Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci Dockerpush fix docker use base builder run npm ls production (#330) r=@… Jul 16, 2018
bin fix(config): mark config sentryDsn and mysql password sensitive (#298)… Jan 12, 2018
config feat(cache): request caching for profile (#253) r=vladikoff Jun 19, 2017
coverage add coverage reporting to grunt-mocha-test Jun 22, 2014
docs fix(docs): Include "displayName" in example profile response. (#326) r= Jun 20, 2018
lib feat(scopes): Use shared code lib for checking OAuth scopes. (#329) r=@… Jul 30, 2018
scripts chore(tests): Use nyc for code coverage. Mar 28, 2018
tasks
test Merge branch 'train-109' Apr 16, 2018
.dockerignore feat(docker): Additional Dockerfile for self-hosting Jan 26, 2016
.eslintrc refactor(lint): remove jscs, update eslint rules Aug 25, 2017
.gitignore chore(tests): Use nyc for code coverage. Mar 28, 2018
.nsprc chore(nsp): nsp updates (#289); r=philbooth Oct 25, 2017
.travis.yml feat(node): update to node 8 (#319) r=@jrgm Apr 24, 2018
CHANGELOG.md Release v1.118.0 Aug 8, 2018
CONTRIBUTING.md chore(release): bump version with 'grunt version' (#200) r=jrgm,vbudhram Jul 26, 2016
Dockerfile-build Dockerpush fix docker use base builder run npm ls production (#330) r=@… Jul 16, 2018
Dockerfile-test
Gruntfile.js chore(tests): Use nyc for code coverage. Mar 28, 2018
LICENSE init profiles Feb 4, 2014
README.md chore(docs): add circleci badge Aug 10, 2016
npm-shrinkwrap.json Release v1.118.0 Aug 8, 2018
package.json Release v1.118.0 Aug 8, 2018

README.md

Firefox Accounts Profile Service

Build Status CircleCI Docker Image Status

A server to provide common profile-related data for a Firefox Account. Such as name, avatar, location, age, gender, etc.

Development

Dependencies:

  • gm (GraphicsMagick)

Installation:

git clone https://github.com/mozilla/fxa-profile-server
cd fxa-profile-server
npm install

Docker Based Development

To run the profile server via Docker, two steps are required:

$ docker build --rm -t mozilla/fxa_profile_server
$ docker run --rm -v $PWD:/opt/fxa mozilla/fxa_profile_server npm install
$ docker run --rm -v $PWD:/opt/fxa --net=host mozilla/fxa_profile_server

This method shares the codebase into the running container so that you can install npm and various modules required by package.json. It then runs profile-server in a container, while allowing you to use your IDE of choice from your normal desktop environment to develop code.

Running tests:

npm test

To run tests via Docker:

docker run --rm -v $PWD:/opt/fxa --net=host mozilla/fxa_profile_server npm test

Running the server locally:

npm start

License

MPL v2.0