DJANGO app using Google Maps API for synchronizing data to google fusion tables using OAuth2.
- Validate access to google fusion table v2 api using OAuth2.
- Perform updates to google fusion table with locations on the map by clicking or changing the position of the marker on the map.
- Delete all locations from google fusion by clicking the reset button.
- Stores previously pinned/clicked locations in the fusion table.
- Display Fusion tables layer with styles applied (i.e All locations saved in the fusion table have custom style and description Text Content).
- Personalized Info window for previously searched addresses.
Read the Docs at http://django-google-app.readthedocs.io/en/latest/index.html
Generate a OAuth client_id.json
here.
- click
Create credentials
. - select
OAuth client ID
. - click on the client ID name to modify the restrictions.
- add the Authorized JavaScript origins e.g
http://localhost:8000
- add Authorized redirect URIs e.g
http://localhost:8000/oauth2callback
- click download json.
Using the downloaded json file.
- rename the file to
client_id.json
. - replace
client_id.json
in project root.
OR
Using the json file copy and set env variables
CLIENT_ID
,PROJECT_ID
,CLIENT_SECRET
.
Manage API Keys from the Console
Generate an API key here for Google Maps API, and Google Fusion Table REST API to keep track of usage information.
{
"maps-api-key": "[[insert google map api key]]",
"fusion-table-api-key": "[[insert google fusion table api key]]"
}
EASY_MAPS_GOOGLE_MAPS_API_KEY=
GOOGLE_FUSION_TABLE_API_KEY=
- Run
pip install virtualenvwrapper
mkvirtualenv localve
pip install virtualenv
virtualenv localve
localve\Scripts\activate
source localve/bin/activate
pip3 install -r requirements.txt
npm install
python3 manage.py migrate
python3 manage.py runserver
make run
Navigate to http://localhost:8000
git clone https://github.com/jackton1/django_google_app.git
cd django_google_app
pip install -e . -r requirements.txt
npm install
python3 manage.py migrate
cd docs
make html
cd docs
sphinx-serve -b build
This opens up a browser window with the documentation url http://localhost:8081.
pip install -e .[test]
make test
tox