_____________________
==========| ======|=\\
| ó ò | \\ o
| c | \\ |
| === |___..\_ |
|======= |=``----._
|== _| )
| /..--.. |
| //. - . \ == )
\ _______// . . \ |
ssssss | . O . |____\
===================== . .
`
- DanH has my car, we need to be able to summon him for rides when drunk.
- DanH needs to know our location
- We need to know DanH's location
- Track users via smartphone apps. Simple read of GPS position, HTTP POST to update current location.
- Display users and Dancar in real-time using Google Maps API and PostGIS.
- Magic happens in user.location update trigger, see
schema.sql
- Android client
- iOS client
- Web client
- WebSocket push event support, falling back to poll-based location update
Poll-based location updatingdoneUser registration / login with Flask-Userdone- Notification system to inform users of Dancar status, and inform Dancar driver of pickup requests
- Cooler interface
- Cooler map markers
- Step 1: Install PostgreSQL, postGIS
sudo -u postgres -- createuser -s $USER
createdb dancar
Install postgres.app
echo "export PATH=/Applications/Postgres.app/Contents/Versions/9.4/bin/:$PATH" >> ~/.profile
echo "export PGHOST=localhost" >> ~/.profile
Reopen your terminal
createdb dancar
echo "CREATE EXTENSION postgis" | psql dancar
psql dancar < schema.sql
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
python runserver.py
And you should be good to go.
make server
make test
View the DanH user map, then run python util/update_pos.py
to update the DanCar with random coordinates.