Group Project - for Python developer project Code Fellows
Wazzap is built to help poeple find events to got to on a night out. It works by allowing a users to enter venues in the search box and when their venue is found, it will put a marker on the map for that venue. When they click that marker, they can now see the latest tweets from that venue. There is some amount of filtering for tweets that look life events.
It uses an RDS Postgres database and an EC2 instance or it can be run locally by creating a local Postegres database. The database contains two tables, one for tweets and another for locations. When the user enters a new, venue, it adds that venue to the database and renders the marker on the map. When the user clicks on a marker, it will pull tweets from the location and put them into the tweets table. Every night at 12:00 midnight, we update the tweets.
$install_nginx_wazzap
Use to install nginx to our instance
$deploy_wazzap
Upload everything in our project folder, ~/projects/wazzap/ up to ~/wazzap on our instance
$ssh_wazzap
Log onto our instance
- Log into our dbase:
ubuntu@ip-172-31-21-125:~$ psql --host=wazzapdbinstance.cskx7uviv9zs.us-west-2.rds.amazonaws.com --port=5432 --username=wazzapuser --dbname=wazzapdbase
Password for user wazzapuser:wazzappaskey
- Remove the dbase tables:
wazzapdbase=> DROP TABLE tweets
wazzapdbase-> DROP TABLE locals
wazzapdbase-> \q
- Go into python in the wazzap directory:
ubuntu@ip-172-31-21-125:~$ cd wazzap
ubuntu@ip-172-31-21-125:~/wazzap$ python
- Initialize and the database and populate the locations database:
>>> import webapp
>>> webapp.init_db()
>>>webapp.setup_data_snapshot()
>>>exit()
ubuntu@ip-172-31-21-125:~/wazzap$ supervisorctl restart webapp
- show processes:
ubuntu@ip-172-31-21-125:~/wazzap$ ps -e
- kill process:
ubuntu@ip-172-31-21-125:~/wazzap$ sudo kill <id of supervisord>
- start supervisor
ubuntu@ip-172-31-21-125:~/wazzap$ supervisord
ubuntu@ip-172-31-21-125:~/wazzap$ sudo /etc/init.d/nginx restart
###Controlling the Auto Update: ###Show update schedule:
ubuntu@ip-172-31-21-125:~/wazzap$ crontab -l
ubuntu@ip-172-31-21-125:~/wazzap$ export EDITORS = vi
ubuntu@ip-172-31-21-125:~/wazzap$ crontab -e
(displays in minutes first, then hours, then days)
ubuntu@ip-172-31-21-125:~/wazzap$ python
>>> from write_json import delete_venues
>>> delete_venues()
>>>exit()
Allow login so each member has their own pins. Allow deletion of pins
Increase pin (or graphic) size with number of attendees. Give additional details (example if its a concert/link to ticket site) Gather data from other sites - facebook..ects. Maybe built in with Uber or local transportation apps (one bus away) for travel considerations. Let me bookmark events for the future. Maybe sends me an email reminder of an event or a text message.
Tweepy API: http://www.tweepy.org/ Google Maps API: https://developers.google.com/maps/