INACTIVE - http://mzl.la/ghe-archive - The server component supporting Firefox's "Share" feature.
Перейти к файлу
Mark Hammond 0e6d9b2980 pass accept-language header to the apis + tests 2011-04-21 14:22:08 +10: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
extensions/firefox-share maxversion merge 2011-04-13 16:45:35 -07:00
grinder Update grinder script to not use csrf (its going away) 2011-03-23 15:12:20 -04:00
linkdrop pass accept-language header to the apis + tests 2011-04-21 14:22:08 +10:00
misc
tools Adapt to different versions of git and branches with '-' in their names. 2011-04-19 13:02:16 -04:00
web Merge from bug/642656 2011-04-15 14:34:58 -07:00
wsgi Fix logging problem when running in wsgi mode 2010-12-14 15:15:49 -05:00
.gitignore don't ignore every 'lib' folder, just the one at the root of the venv 2011-04-11 11:41:43 -07:00
LICENSE
MANIFEST.in Add an initial spec file to help the automation along. 2011-03-18 15:46:39 -04:00
Makefile Compile web content before packaging (make web) 2011-04-20 14:42:32 -04:00
README.md updating readme to reflect current code. 2011-03-29 13:41:26 -07:00
README.production
build.py Bug 645967 - Removed _build - r=mixedpuppy,gozer 2011-03-30 23:33:38 +02:00
debug.ini
development.ini Merge branch 'develop' of github.com:mozilla/f1 into feature/testing 2011-03-24 14:14:16 -07:00
ez_setup.py
f1-nginx.conf added nginx+gunicorn+gevent support 2011-02-25 16:13:52 +01:00
f1.spec.in Use the correct python when running make web [rpm] 2011-04-20 15:16:52 -04:00
grinder.ini avoid grinder hitting bitly to share links and replace tabs with spaces 2011-03-09 14:57:34 +11:00
gunicorn-gevent.ini added nginx+gunicorn+gevent support 2011-02-25 16:13:52 +01:00
production.ini versioned resources for release 2011-04-12 16:15:01 -07:00
profile.ini
setup.cfg
setup.py Merge branch 'develop' into bug/646614 2011-04-13 10:54:21 -07:00
staging.ini versioned resources for release 2011-04-12 16:15:01 -07:00
test.ini add linkedin tests 2011-04-20 14:28:33 +10: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

Setup dependencies:

make build

If you get this error on Mac OS X:

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

It could be because the default version of GCC is too high. If you do

ls -la /usr/bin/gcc

And it points to gcc-4.2, then change it to point to gcc-4.0 (warning affects all gcc calls from then on):

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.0 /usr/bin/gcc

Info taken from this web site

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.