https://github.com/willscott/geosub
Geographic based subscription service
https://github.com/willscott/geosub
Last synced: about 1 year ago
JSON representation
Geographic based subscription service
- Host: GitHub
- URL: https://github.com/willscott/geosub
- Owner: willscott
- License: mit
- Created: 2013-04-20T23:53:02.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-22T01:56:07.000Z (almost 13 years ago)
- Last Synced: 2025-05-09T02:15:10.384Z (about 1 year ago)
- Language: Python
- Size: 784 KB
- Stars: 6
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Geo Sub
=======
Initial work on subscription service for streaming geographic data.
Prerequisites
------
[Shapely](https://pypi.python.org/pypi/Shapely) is installed through ```setup.sh```,
but it does not automatically install its C dependency, [Geos](http://trac.osgeo.org/geos/). Install that
library as is appropriate for your platform.
Installation
------
git submodule init
git submodule update
bash setup.sh
Running
------
### Backend
cd hub
python daemon.py
### Frontend
* Currently needs a google project id saved as client_secrets.json.
* Make a project at https://code.google.com/apis/console
* In API Access create a client id for Web apps
* Set javascript origin to 'http://localhost:8080'
* In Services, enable 'Google+ API'
* Save a file 'client_secrets.json' that looks like:
```javascript
{ "web":
{ "client_id": ".apps.googleusercontent.com",
"client_secret": "",
"redirect_uris": [ "/user/redirect"],
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token"
}
}
```
* Setup additional libraries
```
bash setup.sh
```
* Run the server
```
python server.py
```