INACTIVE - http://mzl.la/ghe-archive - The server component supporting Firefox's "Share" feature.
Перейти к файлу
Shane Caraveo 264f39b286 fix errors when google usernames (real name) have unicode characters 2010-11-10 16:50:32 -08:00
docs linkdrop 2010-09-01 17:41:39 +10:00
extensions/firefox-share fix autocomplete in fx4, somehow I forgot to commit these changes before an lost them 2010-11-09 17:30:59 -08:00
grinder moving frontpage contents up to web root. 2010-11-05 12:14:58 -07:00
linkdrop fix errors when google usernames (real name) have unicode characters 2010-11-10 16:50:32 -08:00
misc add our patched line_profiler file, it fixes use with paste/pylons and any other app that looks at call signatures 2010-09-23 12:00:53 -07:00
tools/webbuild moving frontpage contents up to web root. 2010-11-05 12:14:58 -07:00
web fix path in f1.mozillamessaging.com, usually works but sometimes does not and really should not have the .. in there. Tasks update too. 2010-11-10 16:37:42 -08:00
wsgi simple wsgi script 2010-10-22 12:06:10 -04:00
.gitignore Adding license info. 2010-11-03 16:18:18 -07:00
LICENSE Adding license info. 2010-11-03 16:18:18 -07:00
MANIFEST.in linkdrop 2010-09-01 17:41:39 +10:00
Makefile revving extension for another build, updating tasks. 2010-11-09 15:29:26 -08:00
README.md Adding license info. 2010-11-03 16:18:18 -07:00
debug.ini an ini file to use dbgp debugging 2010-09-29 14:06:17 -07:00
development.ini Need auth error had extraneous button, make sure facebook oauth works for domain used in dev. 2010-11-09 12:53:52 -08:00
ez_setup.py linkdrop 2010-09-01 17:41:39 +10:00
grinder.ini add an ini for grinder testing 2010-10-20 12:49:02 -07:00
profile.ini add an ini file to make using the python profiler easy 2010-09-29 14:04:44 -07:00
setup.cfg linkdrop 2010-09-01 17:41:39 +10:00
setup.py Adding license info. 2010-11-03 16:18:18 -07:00
tasks.txt fix path in f1.mozillamessaging.com, usually works but sometimes does not and really should not have the .. in there. Tasks update too. 2010-11-10 16:37:42 -08:00
test.ini Adding license info. 2010-11-03 16:18:18 -07:00

README.md

f1

A link sharing service that consists of a Firefox extension and a web service.

The firefox extension creates an area to show the share UI served from the web service.

The web service handles the OAuth work and sending of messages to different share servers.

Some directory explanations:

  • extensions: holds the Firefox extension source.
  • web: holds the UI for the web service.
  • grinder: a load testing tool.
  • tools: deployment tools.
  • The rest of the files support the web service.

Installation and Setup

Get the f1 repository:

git clone https://github.com/mozilla/f1.git
cd f1
sudo easy_install virtualenv
virtualenv env
source env/bin/activate

Dependency installation

python setup.py develop

Make a config file as follows::

# **skip this step for now**
# paster make-config f1 config.ini

Tweak the config file as appropriate and then setup the application::

# **skip this step for now**
# paster setup-app config.ini

Running f1

Run the web server. 'reload' is useful for development, the webserver restarts on file changes, otherwise you can leave it off

paster serve --reload development.ini

Then visit: http://127.0.0.1:5000/ for an index of api examples

Setting up a valid Google domain for OpenID+OAuth

You have to have access to a valid domain that google can get to and where you can install an html file.

Visit: https://www.google.com/accounts/ManageDomains

Add your domain, follow the rest of their instructions.

To test: Once that is done, you can bypass normal access to your domain by adding to your /etc/hosts file:

127.0.0.1 your.host.com

Update development.ini and add your key/secret for the google configuration, restart paster.

Then in the web browser, hit f1 with http://your.host.com.