зеркало из https://github.com/mozilla/fxa.git
423699f8ea | ||
---|---|---|
.. | ||
ansible | ||
scripts | ||
static | ||
.awsbox.json | ||
.bowerrc | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.travis.yml | ||
README.md | ||
bower.json | ||
config-local-untrusted.json | ||
config-local.json | ||
config.js | ||
config.json | ||
oauth.js | ||
package.json | ||
retarget.js | ||
server.js |
README.md
A demo of Firefox Accounts OAuth
running locally
- install git, node and redis
- get a local copy of the repository:
git clone https://github.com/mozilla/123done
cd 123done
- install dependencies:
npm install
- generate keys
node scripts/gen_keys.js
- run the server:
npm start
- visit it in your browser:
http://127.0.0.1:8080/
- hack and reload! (web resources don't require a server restart)
deploying to a hosted environment
123done is all set up to deploy quickly and painlessly on amazon EC2 via awsbox.
While full documentation for awsbox is contained within that project, Here is a sample command line that might work for you:
node_modules/.bin/awsbox create \
-u http://123done.org \
--ssl disable \
-n 123done \
-t m1.small \
--keydir $HOME/.persona_secrets/pubkeys/
What do these arguments do?
-u
specifies the public URL of the instance--ssl
set todisable
removes SSL support from the VM-n 123done
sets 123done as a human visible nickname for the VM-t m1.small
specifies a cheap VM that has enough oomph to run the service under load (like from automated tests running)- (optional)
--keydir
specifies a directory where all of the public keys of your colleages reside, so they can administer the VM while you're on vacation.
Ansible Deployment
See fxa-dev 123done Ansible configuration for details.