зеркало из https://github.com/mozilla/fxa.git
946cb34a1b
Bumps [express](https://github.com/expressjs/express) from 4.17.2 to 4.17.3. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.17.2...4.17.3) --- updated-dependencies: - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
ansible | ||
scripts | ||
static | ||
.eslintrc.json | ||
.nsprc | ||
.prettierignore | ||
Procfile | ||
README.md | ||
config-local-untrusted.json | ||
config-local.json | ||
config-stage-untrusted.json | ||
config-stage.json | ||
config.js | ||
config.json | ||
oauth.js | ||
package.json | ||
pm2.config.js | ||
server.js | ||
version.js |
README.md
A demo of Firefox Accounts OAuth
Running locally
- Complete prerequisites for running FxA
- Run the server:
yarn start
- Visit it in your browser:
http://localhost:8080/
- Hack and reload! (web resources don't require a server restart)
Ansible Deployment
See fxa-dev 123done Ansible configuration for details.
Heroku Deployment
- Signup for heroku
- Install heroku cli and login
- Create heroku app for 123done trusted and untrusted clients
- Create a new config for each 123done app
- Set heroku app env value
CONFIG_123DONE=relative/path/to/config
for each app - Add heroku multipack support
heroku buildpacks:add -a <app> https://github.com/heroku/heroku-buildpack-multi-procfile
- Set heroku app env value
PROCFILE=relative/path/to/Procfile/in/your/codebase
- Deploy with
git push heroku main
Testing
This package does not currently have a test suite.
Run npm test
to lint the code.