Skip to content

touhouworldcup/touhouworldcup.com

Repository files navigation

touhouworldcup.com

This is the repository for touhouworldcup.com, the official Touhou World Cup website.

How to run

Prerequisites:

  • PHP (version 8 or newer)
  • MariaDB

Required PHP modules:

  • gettext
  • mysqli

First, clone the repository in whatever way you prefer and navigate to its directory.

git clone https://github.com/touhouworldcup/touhouworldcup.com.git
cd touhouworldcup.com

Make sure MariaDB is running on your system. You may refer to their website for more information. Create a user called twc_admin and store the password in a file named .pw in the website root directory. Run the following command to import the tables.

mariadb -u root -p twc < init.sql

For the archived TWC results from past years, run the following command.

mariadb -u root -p twc_archive < init_archive.sql

For testing, you can use any tool to modify the data as you desire.

Then, run the PHP development server.

php -S 127.0.0.1:8000 router.php

Connect to http://127.0.0.1:8000 using your browser. You can also specify a port other than 8000. The router.php file must be specified for site navigation to work.

If you want, you can use a Web server such as Apache or Nginx to host the site.

To update the translations after the locale files have been altered, restart the PHP development server.

Releases

No releases published

Packages

No packages published