ShlomieLiberow / pictour

Tour London with PicTour

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pic Tour

A self-guided photo tour of London.

Created by Ben Emery, Ollie Bennett, Shlomie Liberow and Krishan Patel during the London Dropbox Hackathon.

Setup

cd pictour

Install requirements

pip install -r droptour/requirements.txt

Run tests

./manage.py test photo_geoip

Configure secret vars in a droptoup/settings_local.py file, as documented in settings.py.

Create database (follow prompts to create a superuser)

./manage.py syncdb

Run server

./manage.py runserver

Visit admin panel at http://127.0.0.1:8000/admin/!

Set up a tunnel to localhost:8000 (eg. using Ngrok).

./ngrok 8000

Create a Dropbox app here. Options:

  • App type: 'Dropbox API app'
  • Data types: 'Files and datastores'
  • Limit to folder: No (need files already on Dropbox)
  • File access: Specific file type: 'Images'.
  • Name: whatever!

Use Dropbox Console to configure your app's webhook to

http://your-random-subdomain.ngrok.com/webhook

Introspect incoming requests at http://localhost:4040.

Sync a .jpg into your Dropbox (via Camera Upload) and the server should be hit!

About

Tour London with PicTour


Languages

Language:CSS 55.0%Language:JavaScript 33.8%Language:Python 11.1%