INACTIVE - http://mzl.la/ghe-archive - The server component supporting Firefox's "Share" feature.
Перейти к файлу
Mark Hammond f923449409 merge bug/646346 into develop 2011-04-01 12:29:20 +11:00
apache
bin
docs
extensions/firefox-share
grinder
linkdrop
misc
tools/webbuild/requirejs
web change required for removing hashchange use, see bug 642655 2011-03-30 13:53:14 -07:00
wsgi
.gitignore
LICENSE
MANIFEST.in
Makefile merge bug/646346 into develop 2011-04-01 12:29:20 +11:00
README.md
README.production
build.py Bug 645967 - Removed _build - r=mixedpuppy,gozer 2011-03-30 23:33:38 +02:00
debug.ini
development.ini
ez_setup.py
f1-nginx.conf
f1.spec.in Tweak our spec file some. We need to install in our own prefix 2011-03-31 20:22:16 -04:00
grinder.ini
gunicorn-gevent.ini
production.ini
profile.ini
setup.cfg
setup.py merge bug/646346 into develop 2011-04-01 12:29:20 +11:00
staging.ini
test.ini

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.