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 rails
in 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.yml
file 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:create
and thenrake db:schema:load
- Create the
config/secrets.yml
file - Run
rake secret
to generate a new secret and then place it in yoursecrets.yml
file as follows:development: secret_key_base: [YOUR GENERATED SECRET HERE]
- Finally you can launch the local server with
rails server
(orruby bin/rails server
on windows) and navigate to http://localhost:3000 to view the application.
Ishan Khatri - [email protected]
Jasmine Lee - [email protected]
Will Morgus - [email protected]
Nigel Paine - [email protected]