Source code for TwitchPlaysPokemon.org
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
admin
cached
config
controllers
css
db
fonts
helpers
img
js
models
src/TPP
views
.gitignore
LICENSE
README.md
composer.json
composer.lock
index.php
phinx.php
update.sh

README.md

TPP.org

Source code for http://twitchplayspokemon.org/

See this reddit thread for instructions on how to run it locally

Installation

For demo purposes, I'll be using a directory named red, located at /var/www/twitchplayspokemon/.

  1. git clone the repository to /var/www/twitchplayspokemon/. Rename the newly created folder to red.

  2. Go into the red directory, then go into the config directory.

  3. Copy or rename sample.config.php to config.php.

  4. Open config.php and edit values where necessary.

  5. Go back to the main red directory, and go one level up, to /var/www/twitchplayspokemon/.

  6. If it doesn't already exist, create a config directory here.

  7. Go into the newly created config directory, and create a config.php.

  8. Copy these contents into the newly created file, and adjust where necessary:

     return [
         "DB_DATABASE" => "twitchplayspokemon_", // The database prefix
         "IMG_PATH" => "/img",                   // Image path relative to the domain. May be an external CDN link
         "DB_HOST" => "localhost",               // Database host
         "DB_USER" => "tppuser",                 // Database username
         "DB_PASS" => "tpppass",                 // Database password
         "TPP_CACHE_KEY" => "cachekey",          // Cache key which can be used to refresh the contents, if caching is enabled
     ];
    
  9. Make update.sh executable: chmod +x update.sh

  10. Run ./update.sh

  11. update.sh will git pull, composer install -o, and vendor/bin/phinx migrate

  12. Load up the site, verify everything works, and you're ready to go.