зеркало из https://github.com/mozilla/fxa.git
bbfc0480e5
Bumps [nock](https://github.com/nock/nock) from 13.3.0 to 13.5.1. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.3.0...v13.5.1) --- updated-dependencies: - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
bin | ||
config | ||
docs | ||
lib | ||
scripts | ||
test | ||
.eslintrc | ||
.nsprc | ||
.prettierignore | ||
README.md | ||
backstage.yaml | ||
package.json | ||
pm2.config.js |
README.md
Firefox Accounts Profile Service
A server to provide common profile-related data for a Firefox Account. Such as name, avatar, location, age, gender, etc.
Development
Installation:
git clone https://github.com/mozilla/fxa-profile-server
cd fxa-profile-server
yarn 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 yarn 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