Skip to content

abitofBaileys/terrorwave-web

Repository files navigation

Lufia 2 Terrorwave Randomizer Web GUI

Requirements

This project does not utilize a database so the migration for Laravel can be skipped.

Installation

Clone this repository
Open a CLI and navigate to the root of the project folder
Create a .env file and generate a new App Key:
Run cp .env.example .env && php artisan key:generate
Adjust the APP_URL in .env to your domain or in case of DDEV:

APP_URL="https://terrorwave-web.ddev.site"

Change the permissions for the project:
Run sudo chown www-data:www-data . -R
Create a symlink from the /public folder to /storage/app/public using artisan:
php artisan storage:link
Alternatively sudo ln -sfn ../storage/app/public ./public/storage

When using DDEV:

Run ddev start

Install dependencies with Composer:

Run composer update
or in DDEV run ddev exec composer update

Increase Upload Limits in php.ini (skip this when using DDEV)

Open the php.ini in Vim, Nano or an editor of your choice:
sudo vim /etc/php/8.1/apache2/php.ini
sudo nano /etc/php/8.1/apache2/php.ini
Change / increase these values:

post_max_size = 5M
upload_max_filesize = 5M

Set up Virtual Host (skip this when using DDEV)

Create a new virtual host
sudo vim /etc/apache2/sites-available/terrorwave-web.conf
with content

<VirtualHost *:80>
    DocumentRoot "/path/to/terrorwave/public"
    ServerName yourdomain.com
    <Directory "/path/to/terrorwave/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Enable site sudo a2ensite terrorwave-web.conf
Restart apache sudo service apache2 reload

Set up SSL certificate (optional, skip this when using DDEV)

Install Certbot if not done yet
Run certbot certonly --webroot -d yourdomain.com -w /path/to/terrorwave/public/

Opening in your browser

Go to http://yourdomain.com or https://yourdomain.com (if SSL enabled)
or in ddev https://terrorwave-web.ddev.site

Credits

abyssonym's terrorwave Randomizer
https://github.com/abyssonym/terrorwave

Meats
https://github.com/tethtoril

Ancient Cave Discord
https://discord.gg/96Uswexh9q

About

Web GUI for Abyssonym's Lufia 2 Randomizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published