/quotes

Primary LanguagePHP

Quotes

This is an implementation of Elo to rate quotes, it was made as an inside joke but can be reused my anyone.

The Elo rating system was used to rank the images.

quotes.sql is the sql creation file for the "quotes" table that the php code needs.

The scripts folder has some php scripts used to populate the table with links to images.

Steps to deploy the website

  1. Install Apache, MySQL, PHP and Composer.

  2. Copy the .env.exampleand rename it to .env and change the values in it

  3. Import the quotes table from quotes.sql. This can be done in multiple way depending on how you communicate with your database.

  4. Add quotes using the php scripts in the scripts folder. The format of the quote text is as following

    • Some quote text following by § and the Context, so Some quote text § Context
    • enterdata.php is used to enter all the quotes into the database. Run this in the linux commandline as php enterdata.php < quotes.txt`
  5. Run composer install or php composer.phar install depending on your install

  6. Start apache and visit your page.