A Trump Tweet Bot that uses Markov Chains to create fake Trump tweets.
- read in trump's new tweets
- allow users to vote on the bot's creations
- add highest upvoted bot generated tweets to the markov model
- add a statistics page for most liked/favorited/retweeted
In order to set up trumpitter on your local machine, you will need ruby, and postgresql to be installed on your local machine.
- First install ruby using the ruby installer - https://rubyinstaller.org/
- Next install the rails gem using
gem install railsin your ruby terminal - Then install postgresql from https://www.postgresql.org/download/
- You will need a tool to setup your local postgres servers so install pgadmin https://www.pgadmin.org/download/pgadmin-4-windows/
- Launch pgAdmin and set up your username and password. Make sure you pass this in to ruby via the
database.ymlfile so that you are able to use your local server. - Follow the steps in the all section.
- First install ruby using homebrew with
brew install ruby - Next install postgresql with
brew install postgres - Install the rails gem with
gem install rails - Launch the postgres server with
brew services start postgres - Follow the steps in the all section.
- Install the required gems with
bundle install - Create the development database with
rake db:createand thenrake db:schema:load - Create the
config/secrets.ymlfile - Run
rake secretto generate a new secret and then place it in yoursecrets.ymlfile as follows:development: secret_key_base: [YOUR GENERATED SECRET HERE]
- Finally you can launch the local server with
rails server(orruby bin/rails serveron windows) and navigate to http://localhost:3000 to view the application.
Ishan Khatri - ishan@khatri.io
Jasmine Lee - leejas2017@gmail.com
Will Morgus - wmorgus@seas.upenn.edu
Nigel Paine - nigelspaine@gmail.com