This is the Rails application for Turkopticon, an employer review system for Amazon Mechanical Turk.
Since the application is relatively old, we will be using versions of software that play well together. You will find a lot of the instructions are specific to MacOS since that is the device I am working with — if you face an unexpected error, please create an issue and include information about your device.
git clone git@github.com:fiveplusone/turkopticon-rails-app.git
cd turkopticon-rails-app
Install RVM (ruby version manager)
Then install ruby 2.7.1
rvm install 2.7.1Install the correct version of ruby directly. Please see instructions on the ruby website.
Gems are managed by bundler. Run bundle install to install the correct versions of all gems.
The software we will be using requires version 5 of mysql. brew install mysql@5.7 will install the appropriate version. For other operating systems, or details/alternatives, refer to the official installation guide.
The app expects that it can access mysql as the user root with no password in development mode. Please talk to us if you have an alternate setup that doesn't work with this assumption.
Make sure the mysql server is running. If you installed mysql with homebrew it may be running already, but if not it can be started as brew services start mysql@5.7
Run the following to configure the development database:
bundle exec rake db:create db:migrateYou should now be able to start the application. You can run this by running the command bundle exec passenger start. Visit localhost:3000 to see the website!