Locography is a location-based journal that creates concrete views of where users have spent their time.
- Python
- Flask
- PostgresSQL
- Javascript/jQuery
- AJAX/JSON
- Jinja2
- Chart.js
- Bootstrap
- Google Maps API
- Google Locations API
Dependencies are listed in requirements.txt
Locography is not deployed.
- Create a python virtual environment and install all dependencies
$ pip install -r requirements.txt
- Have PostgreSQL running. Create a database called locations:
$ psql
# CREATE DATABASE locations
- Create the tables in the database:
$ python model.py
- Start Flask server:
$ python server.py
- Access the web app at localhost:5000
- Account setup and user login
- Add a log/location (uses Google Locations API to collect information about the location -- lat, long, address, phone, website -- and save it in the locations database)
- View logs:
- On home page load, browser receives a JSON object of any logs a user has already created for the current date.
- User can scroll through day by day (using << and >> buttons) or select a date on the dropdown datepicker menu to jump to that specific day's logs.
- Ways to interact with logs on homepage:
- View a directory of all locations a user has visited and search directory
- View details about each location, including any logs about that location
- Edit username and home location
Author: Sarah Stringer