Source code for https://vlw.se
Find a file
2025-01-28 15:29:48 +00:00
api feat: add language chart to about page (#14) 2025-01-28 14:45:52 +00:00
public feat: scroll page to top on Vegvisir navigations (#21) 2025-01-28 15:29:48 +00:00
src/client fix: delete old, unused database class (#3) 2024-09-27 09:48:37 +00:00
.env.example.ini fix: correct and configurable timezone on contact page (#30) 2024-05-10 07:25:22 +00:00
.gitignore feat: add .txt-files and gitignore rules (#7) 2024-09-27 15:09:56 +00:00
composer.json refactor: streamlined all API endpoints and remove local API packages (#36) 2024-06-16 14:02:34 +00:00
composer.lock refactor: streamlined all API endpoints and remove local API packages (#36) 2024-06-16 14:02:34 +00:00
install.sh chore: add support for Vegvisir 3.1 (#11) 2024-11-18 20:53:29 +00:00
LICENSE feat: release 1.0.0 (#1) 2024-04-01 10:22:25 +00:00
package-lock.json chore: add support for Vegvisir 3 (#1) 2024-09-27 09:32:52 +00:00
package.json chore: add support for Vegvisir 3 (#1) 2024-09-27 09:32:52 +00:00
README.md chore: bump supported Vegvisir version (#13) 2024-11-18 21:26:46 +00:00

vlw.se

This is the source code behind vlw.se which has been written from the ground up by me. This website is built on top of my Vegvisir web framework and my Reflect API framework.

Installation

If you for whatever reason want to get this website up and running for yourself this is how that is done.

This website requires the following prerequisites

Confimed supported framework versions:

Vegvisir Reflect
3.1.0 2.7.2

Website (Vegvisir)

  1. Download this repo

    Git clone or download this repo to any local folder

    git clone https://codeberg.org/vlw/vlw.se
    
  2. Download and install Vegvisir

    Follow the installation instructions for Vegvisir and point the root_path variable to your local vlw.se folder.

  3. Run the install script

    This bash script will install dependencies and make npm modules public.

    ./install.sh
    

Et voila! You probably want to install the API-side too but the website itself should now be accessible from your configured Vegvisir host.

API (Reflect)

The API (and database) is where most content is stored and served from on this website.

  1. Download this repo

    You can skip this if you've already downloaded the repo from step 1 in the website installation.

    Otherwise... Git clone or download this repo to any local folder

    git clone https://codeberg.org/vlw/vlw.se
    
  2. Download and install Reflect

    Follow the installation instructions for Reflect and point the endpoints variable to the /api subdirectory in the local vlw.se folder.

  3. Install dependencies

    cd into the api folder and install dependencies with composer.

    composer install --optimize-autoloader
    
  4. Create and import database

    [Create and] import the two databases associated with vlw.se data and the Reflect API configurations from .sql files on the Releases page.

  5. Set environment variables

    Make a copy of /api/.env.example.ini and change the [vlwdb] variables with your MariaDB credentials.

  6. Set environment variables for website

    It's reasonable to assume if you've installed the website from this repo that you'd also want to use the API with it. Start my making a copy of /.env.example.ini (root directory) and change the [api] variables to point to your API hostname.