INACTIVE - http://mzl.la/ghe-archive - The server component supporting Firefox's "Share" feature.
Перейти к файлу
Philippe M. Chiasson 853bcef229 Update grinder script to not use csrf (its going away) 2011-03-23 15:12:20 -04:00
apache Lower logging levels 2010-12-14 15:49:35 -05:00
bin handle staging 2010-11-17 16:06:20 -05:00
docs linkdrop 2010-09-01 17:41:39 +10:00
extensions/firefox-share Remove CSS processing instruction on unload. 2011-03-17 17:28:24 -07:00
grinder Update grinder script to not use csrf (its going away) 2011-03-23 15:12:20 -04:00
linkdrop use time.time() instead of time.clock() for metrics timing of services 2011-03-18 17:41:00 +11: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/requirejs Get build of panel UI working. 2011-01-14 15:26:10 -08:00
web update the feedback link to use the Mozilla F1 specific forum 2011-03-17 15:20:31 -07:00
wsgi Fix logging problem when running in wsgi mode 2010-12-14 15:15:49 -05:00
.gitignore Adding web/current to gitignore. 2011-02-17 10:51:03 -08:00
LICENSE Adding license info. 2010-11-03 16:18:18 -07:00
MANIFEST.in Add an initial spec file to help the automation along. 2011-03-18 15:46:39 -04:00
Makefile Add a 'make rpm' target. 2011-03-18 13:33:03 -04:00
README.md linkifying README.md 2010-12-28 21:37:34 -08:00
README.production prod docs 2010-11-17 16:03:33 -05:00
debug.ini an ini file to use dbgp debugging 2010-09-29 14:06:17 -07:00
development.ini Make sure auth.html is referenced with a versioned path. Make sure html files that reference settings use versioned path to settings, so that the right versioned path for auth.html is used. Remove 0.2.6 directory since it will not be deployed to production. 2011-02-24 12:02:21 -08:00
ez_setup.py linkdrop 2010-09-01 17:41:39 +10:00
f1.spec Add an initial spec file to help the automation along. 2011-03-18 15:46:39 -04:00
grinder.ini avoid grinder hitting bitly to share links and replace tabs with spaces 2011-03-09 14:57:34 +11:00
production.ini versioned resources for release 2011-02-24 13:24:18 -08: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 Add a 'make rpm' target. 2011-03-18 13:33:03 -04:00
staging.ini versioned resources for release 2011-02-24 13:24:18 -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.